public interface MetricsSystem
| Modifier and Type | Method and Description |
|---|---|
Counter |
getCounter(String name)
Get or construct a
Counter used to track a mutable number. |
Histogram |
getHistogram(String name)
Get or construct a
Histogram used to measure a distribution of values. |
Meter |
getMeter(String name)
|
Timer |
getTimer(String name)
Get or construct a
Timer used to measure durations and report rates. |
<T> void |
register(String name,
Gauge<T> gauge)
Register a
Gauge. |
Timer getTimer(String name)
Timer used to measure durations and report rates.name - The name of the Timer.Timer.Histogram getHistogram(String name)
Histogram used to measure a distribution of values.name - The name of the Histogram.Histogram.Meter getMeter(String name)
Meter used to measure durations and report distributions (a
combination of a Timer and a Histogram.name - The name of the Meter.Meter.Counter getCounter(String name)
Counter used to track a mutable number.name - The name of the CounterCounter.<T> void register(String name, Gauge<T> gauge)
Gauge. The Gauge will be invoked at a period defined by the implementation
of MetricsSystem.T - The type of the Gauge.name - The name of the Gauge.gauge - A callback to compute the current value.Copyright © 2012-2025 Apache Software Foundation. All Rights Reserved.