public interface MetricsRegistry
| Modifier and Type | Method and Description |
|---|---|
Counter |
counter(String name)
Creates a new
Counter and registers it under the given name. |
<T extends Number> |
gauge(String name,
Gauge<T> gauge)
Registers the
Gauge under the given name. |
Histogram |
histogram(String name)
Creates a new
Histogram and registers it under the given name. |
Meter |
meter(String name)
Creates a new
Meter and registers it under the given name. |
Timer |
timer(String name)
Creates a new
Timer and registers it under the given name. |
<T extends Number> void gauge(String name, Gauge<T> gauge)
Gauge under the given name.name - the name of the metricCounter counter(String name)
Counter and registers it under the given name.name - the name of the metricCounterTimer timer(String name)
Timer and registers it under the given name.name - the name of the metricTimerMeter meter(String name)
Meter and registers it under the given name.name - the name of the metricMeterCopyright © 2011–2020 Apache Software Foundation. All rights reserved.