Package io.micrometer.prometheus
Class PrometheusTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractTimer
io.micrometer.prometheus.PrometheusTimer
- All Implemented Interfaces:
io.micrometer.core.instrument.distribution.HistogramSupport,io.micrometer.core.instrument.Meter,io.micrometer.core.instrument.Timer
Deprecated.
Timer for Prometheus.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
io.micrometer.core.instrument.Meter.Builder, io.micrometer.core.instrument.Meter.Id, io.micrometer.core.instrument.Meter.MeterProvider<T extends io.micrometer.core.instrument.Meter>, io.micrometer.core.instrument.Meter.TypeNested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer
io.micrometer.core.instrument.Timer.Builder, io.micrometer.core.instrument.Timer.ResourceSample, io.micrometer.core.instrument.Timer.Sample -
Field Summary
Fields inherited from class io.micrometer.core.instrument.AbstractTimer
clock -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Deprecated.io.micrometer.core.instrument.distribution.CountAtBucket[]Deprecated.For Prometheus we cannot use the histogram counts from HistogramSnapshot, as it is based on a rolling histogram.Deprecated.doubleDeprecated.protected voidrecordNonNegative(long amount, TimeUnit unit) Deprecated.io.micrometer.core.instrument.distribution.HistogramSnapshotDeprecated.doubleDeprecated.Methods inherited from class io.micrometer.core.instrument.AbstractTimer
baseTimeUnit, close, defaultHistogram, record, record, record, record, record, record, record, recordCallableMethods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshotMethods inherited from interface io.micrometer.core.instrument.Meter
getId, match, useMethods inherited from interface io.micrometer.core.instrument.Timer
histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
-
Method Details
-
recordNonNegative
Deprecated.- Specified by:
recordNonNegativein classio.micrometer.core.instrument.AbstractTimer
-
count
public long count()Deprecated. -
totalTime
Deprecated. -
max
Deprecated. -
histogramFlavor
Deprecated. -
histogramCounts
public io.micrometer.core.instrument.distribution.CountAtBucket[] histogramCounts()Deprecated.For Prometheus we cannot use the histogram counts from HistogramSnapshot, as it is based on a rolling histogram. Prometheus requires a histogram that accumulates values over the lifetime of the app.- Returns:
- Cumulative histogram buckets.
-
takeSnapshot
public io.micrometer.core.instrument.distribution.HistogramSnapshot takeSnapshot()Deprecated.- Specified by:
takeSnapshotin interfaceio.micrometer.core.instrument.distribution.HistogramSupport- Overrides:
takeSnapshotin classio.micrometer.core.instrument.AbstractTimer
-
io.micrometer.prometheusmetrics.PrometheusTimer.