Class PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<PrometheusPublisher>, MetricsPublisherConfig, PrometheusPublisherConfig, Supplier<PrometheusPublisher>
- Enclosing class:
PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>
protected static class PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
extends Object
implements PrometheusPublisherConfig, Supplier<PrometheusPublisher>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PrometheusPublisherConfig
PrometheusPublisherConfig.Builder, PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forPrometheusPublisher.static classPrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>Fluent API builder base forPrometheusPublisherConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.Whether to include meter descriptions in Prometheus output.booleanenabled()Whether the configured publisher is enabled.booleanget()inthashCode()interval()Step size used in computing "windowed" statistics.name()Name for this instance of the publisher.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.toString()
-
Constructor Details
-
PrometheusPublisherConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<PrometheusPublisher>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<PrometheusPublisher>
-
enabled
public boolean enabled()Description copied from interface:PrometheusPublisherConfigWhether the configured publisher is enabled.- Specified by:
enabledin interfacePrometheusPublisherConfig- Returns:
- true if enabled, false otherwise
-
prefix
Description copied from interface:PrometheusPublisherConfigPrefix 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.- Specified by:
prefixin interfacePrometheusPublisherConfig- Returns:
- property lookup prefix
-
descriptions
Description copied from interface:PrometheusPublisherConfigWhether to include meter descriptions in Prometheus output.- Specified by:
descriptionsin interfacePrometheusPublisherConfig- Returns:
- true to include descriptions, false otherwise
-
interval
Description copied from interface:PrometheusPublisherConfigStep 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.- Specified by:
intervalin interfacePrometheusPublisherConfig- Returns:
- step time
-
namingConvention
Description copied from interface:PrometheusPublisherConfigPrometheus naming convention settings.- Specified by:
namingConventionin interfacePrometheusPublisherConfig- Returns:
- naming convention settings
-
name
Description copied from interface:MetricsPublisherConfigName for this instance of the publisher.- Specified by:
namein interfaceMetricsPublisherConfig- Returns:
- name of the publisher instance
-
toString
-
equals
-
hashCode
-