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 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.Prometheus naming convention settings.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.Methods inherited from interface MetricsPublisherConfig
nameMethods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
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
-
enabled
boolean enabled()Whether the configured publisher is enabled.- Returns:
- true if enabled, false otherwise
-
prefix
-
descriptions
-
interval
-
namingConvention
Optional<PrometheusNamingConventionConfig> namingConvention()Prometheus naming convention settings.- Returns:
- naming convention settings
-