Class FixedBoundaryVictoriaMetricsHistogram

java.lang.Object
io.micrometer.core.instrument.distribution.FixedBoundaryVictoriaMetricsHistogram
All Implemented Interfaces:
Histogram, java.lang.AutoCloseable

public class FixedBoundaryVictoriaMetricsHistogram
extends java.lang.Object
implements Histogram
A histogram implementation for non-negative values with automatically created buckets. It does not support precomputed percentiles but supports aggregable percentile histograms. It's suitable only with VictoriaMetrics storage. Reference implementation written in Go originally by Aliaksandr Valialkin.
Since:
1.4.0
  • Constructor Summary

    Constructors
    Constructor Description
    FixedBoundaryVictoriaMetricsHistogram()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getRangeTagValue​(double value)  
    void recordDouble​(double value)  
    void recordLong​(long value)  
    HistogramSnapshot takeSnapshot​(long count, double total, double max)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.distribution.Histogram

    close
  • Constructor Details

    • FixedBoundaryVictoriaMetricsHistogram

      public FixedBoundaryVictoriaMetricsHistogram()
  • Method Details

    • recordLong

      public void recordLong​(long value)
      Specified by:
      recordLong in interface Histogram
    • recordDouble

      public void recordDouble​(double value)
      Specified by:
      recordDouble in interface Histogram
    • getRangeTagValue

      public static java.lang.String getRangeTagValue​(double value)
    • takeSnapshot

      public HistogramSnapshot takeSnapshot​(long count, double total, double max)
      Specified by:
      takeSnapshot in interface Histogram