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.StringgetRangeTagValue(double value)voidrecordDouble(double value)voidrecordLong(long value)HistogramSnapshottakeSnapshot(long count, double total, double max)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FixedBoundaryVictoriaMetricsHistogram
public FixedBoundaryVictoriaMetricsHistogram()
-
-
Method Details
-
recordLong
public void recordLong(long value)- Specified by:
recordLongin interfaceHistogram
-
recordDouble
public void recordDouble(double value)- Specified by:
recordDoublein interfaceHistogram
-
getRangeTagValue
public static java.lang.String getRangeTagValue(double value) -
takeSnapshot
- Specified by:
takeSnapshotin interfaceHistogram
-