Package io.micrometer.registry.otlp
Interface OtlpConfig
- All Superinterfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig,io.micrometer.core.instrument.push.PushRegistryConfig
public interface OtlpConfig
extends io.micrometer.core.instrument.push.PushRegistryConfig
Config for
OtlpMeterRegistry.- Since:
- 1.9.0
-
Field Summary
Fields -
Method Summary
Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig
get, requireValidMethods inherited from interface io.micrometer.core.instrument.push.PushRegistryConfig
batchSize, connectTimeout, enabled, numThreads, readTimeout, step
-
Field Details
-
DEFAULT
Configuration with default values.
-
-
Method Details
-
prefix
- Specified by:
prefixin interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-
url
Defaults to http://localhost:4318/v1/metrics- Returns:
- address to where metrics will be published.
-
resourceAttributes
Attributes to set on the Resource that will be used for all metrics published. This should include aservice.nameattribute that identifies your service.By default, resource attributes will load using the
MeterRegistryConfig.get(String)method, extracting key values from a comma-separated list in the formatkey1=value1,key2=value2. Resource attributes will be loaded from theOTEL_RESOURCE_ATTRIBUTESenvironment variable and the service name from theOTEL_SERVICE_NAMEenvironment variable if they are set andMeterRegistryConfig.get(String)does not return a value.- Returns:
- map of key value pairs to use as resource attributes
- See Also:
-
validate
default io.micrometer.core.instrument.config.validate.Validated<?> validate()- Specified by:
validatein interfaceio.micrometer.core.instrument.config.MeterRegistryConfig- Specified by:
validatein interfaceio.micrometer.core.instrument.push.PushRegistryConfig
-