Class OtlpPublisher
java.lang.Object
io.helidon.metrics.providers.micrometer.OtlpPublisher
- All Implemented Interfaces:
RuntimeType.Api<OtlpPublisherConfig>,NamedService,MetricsPublisher
Metrics publisher for OTLP output.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OtlpPublisherConfig.Builderbuilder()Returns a builder for composing an OTLP publisher.static OtlpPublishercreate()Creates a default OTLP publisher.static OtlpPublishercreate(OtlpPublisherConfig config) Creates a new OTLP publisher using the provided configuration.static OtlpPublishercreate(Consumer<OtlpPublisherConfig.Builder> consumer) Creates a new OTLP publisher using a new builder and applying a consumer of the builder.booleanenabled()Whether this publisher is enabled.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).The prototype as it was received when creating this runtime object instance.Supplier<io.micrometer.core.instrument.MeterRegistry> registry()type()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
builder
Returns a builder for composing an OTLP publisher.- Returns:
- new builder
-
create
Creates a default OTLP publisher.- Returns:
- default OTLP publisher
-
create
Creates a new OTLP publisher using the provided configuration.- Parameters:
config- OTLP publisher configuration- Returns:
- new OTLP publisher
-
create
Creates a new OTLP publisher using a new builder and applying a consumer of the builder.- Parameters:
consumer- code to process a builder- Returns:
- new OLTP publisher
-
enabled
public boolean enabled()Description copied from interface:MetricsPublisherWhether this publisher is enabled.- Specified by:
enabledin interfaceMetricsPublisher- Returns:
- true if enabled, false otherwise
-
name
Description copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
namein interfaceNamedService- Returns:
- name of this service
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
prototype
Description copied from interface:RuntimeType.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
prototypein interfaceRuntimeType.Api<OtlpPublisherConfig>- Returns:
- prototype object used to create this instance
-
registry
-