Interface OtlpPublisherConfig
- All Superinterfaces:
MetricsPublisherConfig, Prototype.Api, Prototype.Factory<OtlpPublisher>
- All Known Implementing Classes:
OtlpPublisherConfig.BuilderBase.OtlpPublisherConfigImpl
Settings for an OTLP publisher.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forOtlpPublisher.static classOtlpPublisherConfig.BuilderBase<BUILDER extends OtlpPublisherConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpPublisherConfig>Fluent API builder base forOtlpPublisherConfig. -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.micrometer.registry.otlp.AggregationTemporality> Algorithm to use for adjusting values before transmission.Base time unit for timers.Number of measurements to send in a single request to the backend.static OtlpPublisherConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static OtlpPublisherConfig.Builderbuilder(OtlpPublisherConfig instance) Create a new fluent API builder from an existing instance.config()Metrics configuration node.static OtlpPublisherConfigCreate a new instance from configuration.booleanenabled()Whether the configured publisher is enabled.headers()Headers to add to each transmission message.interval()Interval between successive transmissions of metrics data.Maximum bucket count to apply to statistical histogram.Maximum number of buckets to use for specific meters.maxScale()Maximum scale value to apply to statistical histogram.prefix()The prefix for settings.Property values to be returned by the OTLP meter registry configuration.Attribute name/value pairs to be associated with all metrics transmissions.url()URL to which to send metrics telemetry.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
-
enabled
boolean enabled()Whether the configured publisher is enabled.- Returns:
- true if enabled, false otherwise
-
prefix
-
url
-
interval
-
resourceAttributes
-
aggregationTemporality
Optional<io.micrometer.registry.otlp.AggregationTemporality> aggregationTemporality()Algorithm to use for adjusting values before transmission.- Returns:
- aggregation strategy
-
batchSize
-
headers
-
maxScale
-
maxBucketCount
-
maxBucketsPerMeter
-
baseTimeUnit
-
config
-
properties
-