Class PrometheusNamingConventionConfig.Builder
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusNamingConventionConfig.BuilderBase<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>
io.helidon.metrics.providers.micrometer.PrometheusNamingConventionConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>, Builder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>, ConfigBuilderSupport.ConfiguredBuilder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>, Supplier<PrometheusNamingConventionConfig>
- Enclosing interface:
PrometheusNamingConventionConfig
public static class PrometheusNamingConventionConfig.Builder
extends PrometheusNamingConventionConfig.BuilderBase<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>
implements Builder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>
Fluent API builder for
PrometheusNamingConventionConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class PrometheusNamingConventionConfig.BuilderBase
PrometheusNamingConventionConfig.BuilderBase.PrometheusNamingConventionConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class PrometheusNamingConventionConfig.BuilderBase
clearNonLetterPrefix, config, config, from, from, nonLetterPrefix, nonLetterPrefix, preBuildPrototype, timerSuffix, timerSuffix, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of nonLetterPrefix.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(PrometheusNamingConventionConfig prototype) Update this builder from an existing prototype instance.from(PrometheusNamingConventionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.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.nonLetterPrefix(String 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.protected voidHandles providers and decorators.Suffix which identifies a timer name before Prometheus adds_seconds.timerSuffix(String timerSuffix) Suffix which identifies a timer name before Prometheus adds_seconds.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault PrometheusNamingConventionConfigget()identity()Instance of this builder as the correct type.Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<PrometheusNamingConventionConfig.Builder, PrometheusNamingConventionConfig>- Returns:
- instance of the built type
-