Class ExporterOpenTelemetryProperties
java.lang.Object
io.prometheus.metrics.config.ExporterOpenTelemetryProperties
Properties for configuring the OpenTelemetry exporter.
These properties can be configured via prometheus.properties, system properties, or
programmatically.
All properties are prefixed with io.prometheus.exporter.opentelemetry.
Available properties:
protocol- OTLP protocol:"grpc"or"http/protobuf"endpoint- OTLP endpoint URLheaders- HTTP headers for outgoing requestsintervalSeconds- Export interval in secondstimeoutSeconds- Request timeout in secondsserviceName- Service name resource attributeserviceNamespace- Service namespace resource attributeserviceInstanceId- Service instance ID resource attributeserviceVersion- Service version resource attributeresourceAttributes- Additional resource attributes
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExporterOpenTelemetryProperties(String protocol, String endpoint, Map<String, String> headers, String interval, String timeout, String serviceName, String serviceNamespace, String serviceInstanceId, String serviceVersion, Map<String, String> resourceAttributes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(package private) static ExporterOpenTelemetryPropertiesload(PropertySource propertySource) Note that this will remove entries frompropertySource.
-
Field Details
-
PROTOCOL
- See Also:
-
ENDPOINT
- See Also:
-
HEADERS
- See Also:
-
INTERVAL_SECONDS
- See Also:
-
TIMEOUT_SECONDS
- See Also:
-
SERVICE_NAME
- See Also:
-
SERVICE_NAMESPACE
- See Also:
-
SERVICE_INSTANCE_ID
- See Also:
-
SERVICE_VERSION
- See Also:
-
RESOURCE_ATTRIBUTES
- See Also:
-
PREFIX
- See Also:
-
endpoint
-
protocol
-
headers
-
interval
-
timeout
-
serviceName
-
serviceNamespace
-
serviceInstanceId
-
serviceVersion
-
resourceAttributes
-
-
Constructor Details
-
ExporterOpenTelemetryProperties
-
-
Method Details
-
getProtocol
-
getEndpoint
-
getHeaders
-
getInterval
-
getTimeout
-
getServiceName
-
getServiceNamespace
-
getServiceInstanceId
-
getServiceVersion
-
getResourceAttributes
-
load
static ExporterOpenTelemetryProperties load(PropertySource propertySource) throws PrometheusPropertiesException Note that this will remove entries frompropertySource. This is because we want to know if there are unused properties remaining after all properties have been loaded.- Throws:
PrometheusPropertiesException
-
builder
-