Class OtlpPublisherConfig.BuilderBase<BUILDER extends OtlpPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OtlpPublisherConfig>
java.lang.Object
io.helidon.metrics.providers.micrometer.OtlpPublisherConfig.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> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OtlpPublisherConfig.Builder
- Enclosing interface:
OtlpPublisherConfig
public abstract static class OtlpPublisherConfig.BuilderBase<BUILDER extends OtlpPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OtlpPublisherConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
OtlpPublisherConfig.-
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 TypeMethodDescriptionaddHeaders(Map<String, String> headers) Headers to add to each transmission message.addMaxBucketsPerMeter(Map<String, Integer> maxBucketsPerMeter) Maximum number of buckets to use for specific meters.addProperties(Map<String, String> properties) Property values to be returned by the OTLP meter registry configuration.addResourceAttributes(Map<String, String> resourceAttributes) Attribute name/value pairs to be associated with all metrics transmissions.Optional<io.micrometer.registry.otlp.AggregationTemporality> Algorithm to use for adjusting values before transmission.aggregationTemporality(io.micrometer.registry.otlp.AggregationTemporality aggregationTemporality) Algorithm to use for adjusting values before transmission.Base time unit for timers.baseTimeUnit(TimeUnit baseTimeUnit) Base time unit for timers.Number of measurements to send in a single request to the backend.batchSize(int batchSize) Number of measurements to send in a single request to the backend.Clear existing value of aggregationTemporality.Clear existing value of baseTimeUnit.Clear existing value of batchSize.Clear existing value of interval.Clear existing value of maxBucketCount.Clear existing value of maxScale.Clear existing value of name.Clear existing value of prefix.clearUrl()Clear existing value of url.config()Metrics configuration node.Deprecated.Update builder from configuration (node of this type).booleanenabled()Whether the configured publisher is enabled.enabled(boolean enabled) Whether the configured publisher is enabled.from(OtlpPublisherConfig prototype) Update this builder from an existing prototype instance.from(OtlpPublisherConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()Headers to add to each transmission message.Headers to add to each transmission message.interval()Interval between successive transmissions of metrics data.Interval between successive transmissions of metrics data.Maximum bucket count to apply to statistical histogram.maxBucketCount(int maxBucketCount) Maximum bucket count to apply to statistical histogram.Maximum number of buckets to use for specific meters.maxBucketsPerMeter(Map<String, Integer> maxBucketsPerMeter) Maximum number of buckets to use for specific meters.maxScale()Maximum scale value to apply to statistical histogram.maxScale(int maxScale) Maximum scale value to apply to statistical histogram.name()Name option.Name option.protected voidHandles providers and decorators.prefix()The prefix for settings.The prefix for settings.Property values to be returned by the OTLP meter registry configuration.properties(Map<String, String> properties) Property values to be returned by the OTLP meter registry configuration.Attribute name/value pairs to be associated with all metrics transmissions.resourceAttributes(Map<String, String> resourceAttributes) Attribute name/value pairs to be associated with all metrics transmissions.toString()url()URL to which to send metrics telemetry.URL to which to send metrics telemetry.protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.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
Deprecated.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 OtlpPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OtlpPublisherConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- 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 OtlpPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OtlpPublisherConfig> - 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
The prefix for settings.- Parameters:
prefix- prefix- Returns:
- updated builder instance
- See Also:
-
clearUrl
Clear existing value of url.- Returns:
- updated builder instance
- See Also:
-
url
URL to which to send metrics telemetry.- Parameters:
url- backend URL- Returns:
- updated builder instance
- See Also:
-
clearInterval
Clear existing value of interval.- Returns:
- updated builder instance
- See Also:
-
interval
Interval between successive transmissions of metrics data.- Parameters:
interval- step interval- Returns:
- updated builder instance
- See Also:
-
resourceAttributes
Attribute name/value pairs to be associated with all metrics transmissions. This method replaces all values with the new ones.- Parameters:
resourceAttributes- name/value pairs of attribute settings- Returns:
- updated builder instance
- See Also:
-
addResourceAttributes
Attribute name/value pairs to be associated with all metrics transmissions. This method keeps existing values, then puts all new values into the map.- Parameters:
resourceAttributes- name/value pairs of attribute settings- Returns:
- updated builder instance
- See Also:
-
clearAggregationTemporality
Clear existing value of aggregationTemporality.- Returns:
- updated builder instance
- See Also:
-
aggregationTemporality
public BUILDER aggregationTemporality(io.micrometer.registry.otlp.AggregationTemporality aggregationTemporality) Algorithm to use for adjusting values before transmission.- Parameters:
aggregationTemporality- aggregation strategy- Returns:
- updated builder instance
- See Also:
-
clearBatchSize
Clear existing value of batchSize.- Returns:
- updated builder instance
- See Also:
-
batchSize
Number of measurements to send in a single request to the backend.- Parameters:
batchSize- transmission batch size- Returns:
- updated builder instance
- See Also:
-
headers
Headers to add to each transmission message. This method replaces all values with the new ones.- Parameters:
headers- headers- Returns:
- updated builder instance
- See Also:
-
addHeaders
Headers to add to each transmission message. This method keeps existing values, then puts all new values into the map.- Parameters:
headers- headers- Returns:
- updated builder instance
- See Also:
-
clearMaxScale
Clear existing value of maxScale.- Returns:
- updated builder instance
- See Also:
-
maxScale
Maximum scale value to apply to statistical histogram.- Parameters:
maxScale- maximum scale- Returns:
- updated builder instance
- See Also:
-
clearMaxBucketCount
Clear existing value of maxBucketCount.- Returns:
- updated builder instance
- See Also:
-
maxBucketCount
Maximum bucket count to apply to statistical histogram.- Parameters:
maxBucketCount- maximum bucket count- Returns:
- updated builder instance
- See Also:
-
maxBucketsPerMeter
Maximum number of buckets to use for specific meters. This method replaces all values with the new ones.- Parameters:
maxBucketsPerMeter- meter-specific maxBucket values- Returns:
- updated builder instance
- See Also:
-
addMaxBucketsPerMeter
Maximum number of buckets to use for specific meters. This method keeps existing values, then puts all new values into the map.- Parameters:
maxBucketsPerMeter- meter-specific maxBucket values- Returns:
- updated builder instance
- See Also:
-
clearBaseTimeUnit
Clear existing value of baseTimeUnit.- Returns:
- updated builder instance
- See Also:
-
baseTimeUnit
Base time unit for timers.- Parameters:
baseTimeUnit- base time unit- Returns:
- updated builder instance
- See Also:
-
properties
Property values to be returned by the OTLP meter registry configuration. This method replaces all values with the new ones.- Parameters:
properties- properties- Returns:
- updated builder instance
- See Also:
-
addProperties
Property values to be returned by the OTLP meter registry configuration. This method keeps existing values, then puts all new values into the map.- Parameters:
properties- properties- 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
The prefix for settings.- Returns:
- prefix
-
url
URL to which to send metrics telemetry.- Returns:
- backend URL
-
interval
Interval between successive transmissions of metrics data.- Returns:
- step interval
-
resourceAttributes
Attribute name/value pairs to be associated with all metrics transmissions.- Returns:
- name/value pairs of attribute settings
-
aggregationTemporality
Algorithm to use for adjusting values before transmission.- Returns:
- aggregation strategy
-
batchSize
Number of measurements to send in a single request to the backend.- Returns:
- transmission batch size
-
headers
Headers to add to each transmission message.- Returns:
- headers
-
maxScale
Maximum scale value to apply to statistical histogram.- Returns:
- maximum scale
-
maxBucketCount
Maximum bucket count to apply to statistical histogram.- Returns:
- maximum bucket count
-
maxBucketsPerMeter
Maximum number of buckets to use for specific meters.- Returns:
- meter-specific maxBucket values
-
baseTimeUnit
Base time unit for timers.- Returns:
- base time unit
-
config
Metrics configuration node.- Returns:
- metrics configuration
-
properties
Property values to be returned by the OTLP meter registry configuration.- Returns:
- properties
-
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(io.helidon.config.Config)