Class FixedBoundaryVictoriaMetricsHistogram

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

public class FixedBoundaryVictoriaMetricsHistogram extends 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 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 String getRangeTagValue(double value)
    • takeSnapshot

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