- All Known Implementing Classes:
MpMetricsProgrammaticConfig
public interface MetricsProgrammaticConfig
Programmatic (rather than user-configurable) settings that govern certain metrics behavior.
Implementations of this interface are typically provided by Helidon itself rather than developers building applications and are not intended for per-deployment (or even per-application) customization.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Internal use class to hold a reference to the singleton. -
Method Summary
Modifier and TypeMethodDescriptiondefault MetricsConfig
apply
(MetricsConfig metricsConfig) Creates a newMetricsConfig
instance by applying overrides from this programmatic config instance.default MetricsConfig.Builder
apply
(MetricsConfig.Builder builder) Augments an existingMetricsConfig.Builder
, presumably from actual config, with overrides provided by this programmatic config instance.Name to use for a tag, added to each meter's identity, conveying the application it belongs to.static MetricsProgrammaticConfig
instance()
Returns the singleton instance of the metrics programmatic settings.Returns the reserved tag names (for scope and app).Default tag value to use for the scope tag if none is specified when the meter ID is created.Name to use for a tag, added to each meter's identity, conveying its scope in output.
-
Method Details
-
instance
Returns the singleton instance of the metrics programmatic settings.- Returns:
- the singleton
-
scopeDefaultValue
Default tag value to use for the scope tag if none is specified when the meter ID is created.- Returns:
- default scope tag value
-
scopeTagName
Name to use for a tag, added to each meter's identity, conveying its scope in output.- Returns:
- the scope tag name
-
appTagName
Name to use for a tag, added to each meter's identity, conveying the application it belongs to.- Returns:
- the app tag name
-
reservedTagNames
Returns the reserved tag names (for scope and app).- Returns:
- reserved tag names
-
apply
Augments an existingMetricsConfig.Builder
, presumably from actual config, with overrides provided by this programmatic config instance.- Parameters:
builder
- original metrics configuration builder- Returns:
- metrics config with any overrides applied
-
apply
Creates a newMetricsConfig
instance by applying overrides from this programmatic config instance.- Parameters:
metricsConfig
- original metrics configuration- Returns:
- new metrics configuration with overrides applied
-