public class PrometheusTimer extends AbstractTimer
Timer.Builder, Timer.Sample
Meter.Id, Meter.Type
clock
Modifier and Type | Method and Description |
---|---|
long |
count() |
CountAtBucket[] |
histogramCounts()
For Prometheus we cannot use the histogram counts from HistogramSnapshot, as it is based on a
rolling histogram.
|
double |
max(TimeUnit unit) |
protected void |
recordNonNegative(long amount,
TimeUnit unit) |
HistogramSnapshot |
takeSnapshot() |
double |
totalTime(TimeUnit unit) |
baseTimeUnit, close, equals, hashCode, record, record, record, recordCallable
getId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder, builder, histogramCountAtValue, mean, measure, percentile, record, start, start, start, wrap, wrap
takeSnapshot
protected void recordNonNegative(long amount, TimeUnit unit)
recordNonNegative
in class AbstractTimer
public long count()
public double totalTime(TimeUnit unit)
public double max(TimeUnit unit)
public CountAtBucket[] histogramCounts()
public HistogramSnapshot takeSnapshot()
takeSnapshot
in interface HistogramSupport
takeSnapshot
in class AbstractTimer
Copyright © 2019. All rights reserved.