Class PrometheusPublisherConfig.Builder
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.BuilderBase<PrometheusPublisherConfig.Builder, PrometheusPublisherConfig>
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<PrometheusPublisherConfig.Builder, PrometheusPublisherConfig>, Builder<PrometheusPublisherConfig.Builder, PrometheusPublisher>, ConfigBuilderSupport.ConfiguredBuilder<PrometheusPublisherConfig.Builder, PrometheusPublisherConfig>, Supplier<PrometheusPublisher>
- Enclosing interface:
PrometheusPublisherConfig
public static class PrometheusPublisherConfig.Builder
extends PrometheusPublisherConfig.BuilderBase<PrometheusPublisherConfig.Builder, PrometheusPublisherConfig>
implements Builder<PrometheusPublisherConfig.Builder, PrometheusPublisher>
Fluent API builder for
PrometheusPublisher.-
Nested Class Summary
Nested classes/interfaces inherited from class PrometheusPublisherConfig.BuilderBase
PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImplModifier 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 PrometheusPublisherConfig.BuilderBase
clearDescriptions, clearInterval, clearName, clearNamingConvention, clearPrefix, config, config, descriptions, descriptions, enabled, enabled, from, from, interval, interval, name, name, namingConvention, namingConvention, namingConvention, namingConvention, preBuildPrototype, prefix, prefix, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of descriptions.Clear existing value of interval.Clear existing value of name.Clear existing value of namingConvention.Clear existing value of prefix.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Whether to include meter descriptions in Prometheus output.descriptions(boolean descriptions) Whether to include meter descriptions in Prometheus output.booleanenabled()Whether the configured publisher is enabled.enabled(boolean enabled) Whether the configured publisher is enabled.from(PrometheusPublisherConfig prototype) Update this builder from an existing prototype instance.from(PrometheusPublisherConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.interval()Step size used in computing "windowed" statistics.Step size used in computing "windowed" statistics.name()Name option.Name option.Prometheus naming convention settings.namingConvention(PrometheusNamingConventionConfig namingConvention) Prometheus naming convention settings.Prometheus naming convention settings.namingConvention(Supplier<? extends PrometheusNamingConventionConfig> supplier) Prometheus naming convention settings.protected voidHandles providers and decorators.prefix()Prefix for Micrometer Prometheus property lookups; this setting does not add a prefix to exported metric names, and the legacyprometheus.histogramFlavorproperty is accepted for compatibility but ignored with a warning.Prefix for Micrometer Prometheus property lookups; this setting does not add a prefix to exported metric names, and the legacyprometheus.histogramFlavorproperty is accepted for compatibility but ignored with a warning.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 PrometheusPublisherget()identity()Instance of this builder as the correct type.update(Consumer<PrometheusPublisherConfig.Builder> consumer) 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<PrometheusPublisherConfig.Builder, PrometheusPublisherConfig>- 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<PrometheusPublisherConfig.Builder, PrometheusPublisher>- Returns:
- instance of the built type
-