Interface PrometheusPublisherConfig
- All Superinterfaces:
MetricsPublisherConfig,Prototype.Api,Prototype.Factory<PrometheusPublisher>
- All Known Implementing Classes:
PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
Settings for a Micrometer Prometheus meter registry.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forPrometheusPublisher.static classPrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig> Fluent API builder base forPrometheusPublisherConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(PrometheusPublisherConfig instance) Create a new fluent API builder from an existing instance.static PrometheusPublisherConfigcreate()Create a new instance with default values.static PrometheusPublisherConfigDeprecated.static PrometheusPublisherConfigCreate a new instance from configuration.Whether to include meter descriptions in Prometheus output.booleanenabled()Whether the configured publisher is enabled.interval()Step size used in computing "windowed" statistics.prefix()Property name prefix.Methods inherited from interface io.helidon.metrics.api.MetricsPublisherConfig
nameMethods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
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
Deprecated.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
-
enabled
boolean enabled()Whether the configured publisher is enabled.- Returns:
- true if enabled, false otherwise
-
prefix
Property name prefix.- Returns:
- property name prefix
-
descriptions
Whether to include meter descriptions in Prometheus output.- Returns:
- true to include descriptions, false otherwise
-
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.- Returns:
- step time
-
create(io.helidon.config.Config)