Class MicrometerPrometheusFormatterProvider
java.lang.Object
io.helidon.metrics.providers.micrometer.MicrometerPrometheusFormatterProvider
- All Implemented Interfaces:
MeterRegistryFormatterProvider
public class MicrometerPrometheusFormatterProvider
extends Object
implements MeterRegistryFormatterProvider
Micrometer (and Prometheus, particularly) specific formatter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatter
(MediaType mediaType, MetricsConfig metricsConfig, MeterRegistry meterRegistry, Optional<String> scopeTagName, Iterable<String> scopeSelection, Iterable<String> nameSelection) Returns, if possible, aMeterRegistryFormatter
capable of preparing output according to the specifiedMediaType
.
-
Constructor Details
-
MicrometerPrometheusFormatterProvider
Deprecated.Constructs a new instance for service loading.
-
-
Method Details
-
formatter
public Optional<MeterRegistryFormatter> formatter(MediaType mediaType, MetricsConfig metricsConfig, MeterRegistry meterRegistry, Optional<String> scopeTagName, Iterable<String> scopeSelection, Iterable<String> nameSelection) Description copied from interface:MeterRegistryFormatterProvider
Returns, if possible, aMeterRegistryFormatter
capable of preparing output according to the specifiedMediaType
.- Specified by:
formatter
in interfaceMeterRegistryFormatterProvider
- Parameters:
mediaType
- media type of the desired outputmetricsConfig
-MetricsConfig
to influence the formattingmeterRegistry
-MeterRegistry
from which to gather datascopeTagName
- tag name used to record scopescopeSelection
- scope names to format; empty means no scope-based restrictionnameSelection
- meter names to format; empty means no name-based restriction- Returns:
- compatible formatter; empty if none
-