Interface PrometheusNamingConventionConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
PrometheusNamingConventionConfig.BuilderBase.PrometheusNamingConventionConfigImpl
Settings controlling Prometheus naming conventions.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forPrometheusNamingConventionConfig.static classPrometheusNamingConventionConfig.BuilderBase<BUILDER extends PrometheusNamingConventionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusNamingConventionConfig>Fluent API builder base forPrometheusNamingConventionConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(PrometheusNamingConventionConfig instance) Create a new fluent API builder from an existing instance.create()Create a new instance with default values.Create a new instance from configuration.Prefix to add to metric names and tag keys which do not begin with a letter; configuring this setting enables legacy simpleclient-compatible normalization, withm_reproducing the naming from earlier Helidon releases, and preserves user-supplied reserved suffixes such as_total,_created,_bucket, and_info, whereas leaving it unset uses the new Prometheus client's normalization; the prefix must be non-empty and match[A-Za-z][A-Za-z0-9_]*, and constructing the publisher fails if the value is invalid.Suffix which identifies a timer name before Prometheus adds_seconds.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
timerSuffix
String timerSuffix()Suffix which identifies a timer name before Prometheus adds_seconds.- Returns:
- timer suffix
-
nonLetterPrefix
Prefix to add to metric names and tag keys which do not begin with a letter; configuring this setting enables legacy simpleclient-compatible normalization, withm_reproducing the naming from earlier Helidon releases, and preserves user-supplied reserved suffixes such as_total,_created,_bucket, and_info, whereas leaving it unset uses the new Prometheus client's normalization; the prefix must be non-empty and match[A-Za-z][A-Za-z0-9_]*, and constructing the publisher fails if the value is invalid.- Returns:
- non-letter prefix
-