public class DropwizardMeterRegistry extends MeterRegistry
MeterRegistry.Config, MeterRegistry.More, MeterRegistry.Search
clock
Constructor and Description |
---|
DropwizardMeterRegistry(DropwizardConfig config,
HierarchicalNameMapper nameMapper,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
protected HistogramConfig |
defaultHistogramConfig()
Every custom registry implementation should define a default histogram expiry:
|
protected java.util.concurrent.TimeUnit |
getBaseTimeUnit() |
com.codahale.metrics.MetricRegistry |
getDropwizardRegistry() |
protected Counter |
newCounter(Meter.Id id) |
protected DistributionSummary |
newDistributionSummary(Meter.Id id,
HistogramConfig histogramConfig) |
protected <T> FunctionCounter |
newFunctionCounter(Meter.Id id,
T obj,
java.util.function.ToDoubleFunction<T> f) |
protected <T> FunctionTimer |
newFunctionTimer(Meter.Id id,
T obj,
java.util.function.ToLongFunction<T> countFunction,
java.util.function.ToDoubleFunction<T> totalTimeFunction,
java.util.concurrent.TimeUnit totalTimeFunctionUnits) |
protected <T> Gauge |
newGauge(Meter.Id id,
T obj,
java.util.function.ToDoubleFunction<T> f) |
protected LongTaskTimer |
newLongTaskTimer(Meter.Id id) |
protected Meter |
newMeter(Meter.Id id,
Meter.Type type,
java.lang.Iterable<Measurement> measurements) |
protected Timer |
newTimer(Meter.Id id,
HistogramConfig histogramConfig,
PauseDetector pauseDetector) |
config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, getConventionName, getConventionTags, getMeters, more, newTimeGauge, summary, summary, timer, timer
public DropwizardMeterRegistry(DropwizardConfig config, HierarchicalNameMapper nameMapper, Clock clock)
public com.codahale.metrics.MetricRegistry getDropwizardRegistry()
protected Counter newCounter(Meter.Id id)
newCounter
in class MeterRegistry
protected <T> Gauge newGauge(Meter.Id id, T obj, java.util.function.ToDoubleFunction<T> f)
newGauge
in class MeterRegistry
protected Timer newTimer(Meter.Id id, HistogramConfig histogramConfig, PauseDetector pauseDetector)
newTimer
in class MeterRegistry
protected DistributionSummary newDistributionSummary(Meter.Id id, HistogramConfig histogramConfig)
newDistributionSummary
in class MeterRegistry
protected LongTaskTimer newLongTaskTimer(Meter.Id id)
newLongTaskTimer
in class MeterRegistry
protected <T> FunctionTimer newFunctionTimer(Meter.Id id, T obj, java.util.function.ToLongFunction<T> countFunction, java.util.function.ToDoubleFunction<T> totalTimeFunction, java.util.concurrent.TimeUnit totalTimeFunctionUnits)
newFunctionTimer
in class MeterRegistry
protected <T> FunctionCounter newFunctionCounter(Meter.Id id, T obj, java.util.function.ToDoubleFunction<T> f)
newFunctionCounter
in class MeterRegistry
protected Meter newMeter(Meter.Id id, Meter.Type type, java.lang.Iterable<Measurement> measurements)
newMeter
in class MeterRegistry
protected java.util.concurrent.TimeUnit getBaseTimeUnit()
getBaseTimeUnit
in class MeterRegistry
protected HistogramConfig defaultHistogramConfig()
MeterRegistry
histogramConfig.builder() .histogramExpiry(defaultStep) .build() .merge(HistogramConfig.DEFAULT);
defaultHistogramConfig
in class MeterRegistry