MetricRegistryService¶
-
public interface
MetricRegistryService
¶ Represents a registry that creates and/or retrieves a variety of metric types and allows registered metrics to be enabled or disabled.
Methods¶
counter¶
histogram¶
isRegistered¶
meter¶
registerGauge¶
registerRatioGauge¶
-
<T extends Number> Gauge<Double>
registerRatioGauge
(String name, Supplier<T> numerator, Supplier<T> denominator)¶ Register a ratio gauge.
Parameters: - name – the name of the gauge
- numerator – a function returning a number represents the value of the numerator
- denominator – a function returning a number that represents the value of the denominator
- <T> – a type of number
Returns: the registered gauge