Class PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
PrometheusPublisherConfig.Builder
- Enclosing interface:
PrometheusPublisherConfig
public abstract static class PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
PrometheusPublisherConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
Whether the configured publisher is enabled.- Parameters:
enabled- true if enabled, false otherwise- Returns:
- updated builder instance
- See Also:
-
clearPrefix
Clear existing value of prefix.- Returns:
- updated builder instance
- See Also:
-
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.- Parameters:
prefix- property lookup prefix- Returns:
- updated builder instance
- See Also:
-
clearDescriptions
Clear existing value of descriptions.- Returns:
- updated builder instance
- See Also:
-
descriptions
Whether to include meter descriptions in Prometheus output.- Parameters:
descriptions- true to include descriptions, false otherwise- Returns:
- updated builder instance
- See Also:
-
clearInterval
Clear existing value of interval.- Returns:
- updated builder instance
- See Also:
-
interval
Step size used in computing "windowed" statistics. Micrometer advises that this value should be close to the interval with which backend systems scrape the Prometheus-format metrics data.- Parameters:
interval- step time- Returns:
- updated builder instance
- See Also:
-
clearNamingConvention
Clear existing value of namingConvention.- Returns:
- updated builder instance
- See Also:
-
namingConvention
Prometheus naming convention settings.- Parameters:
namingConvention- naming convention settings- Returns:
- updated builder instance
- See Also:
-
namingConvention
Prometheus naming convention settings.- Parameters:
consumer- consumer of builder of naming convention settings- Returns:
- updated builder instance
- See Also:
-
namingConvention
Prometheus naming convention settings.- Parameters:
supplier- supplier of naming convention settings- Returns:
- updated builder instance
- See Also:
-
clearName
Clear existing value of name.- Returns:
- updated builder instance
- See Also:
-
name
Name option. Defined inMetricsPublisherConfig.name()- Parameters:
name- the name option- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()Whether the configured publisher is enabled.- Returns:
- true if enabled, false otherwise
-
prefix
-
descriptions
-
interval
-
namingConvention
Prometheus naming convention settings.- Returns:
- naming convention settings
-
name
Name option. Defined inMetricsPublisherConfig.name()- Returns:
- the name option
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-