Micrometer
OpenTelemetry Java agent instrumentation
This instrumentation enables a Micrometer MeterRegistry that bridges Micrometer metrics to the OpenTelemetry Metrics SDK. It is disabled by default because it may produce metrics that overlap with metrics already captured by other instrumentations.
- Name:
micrometer-1.5 - Scope:
io.opentelemetry.micrometer-1.5 - Target versions:
io.micrometer:micrometer-core:[1.5.0,) - Library: https://micrometer.io/
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.micrometer.base-time-unit | string | s | Sets the base time unit for the OpenTelemetry MeterRegistry. Supported values: ns, us, ms, s, min, h, d. |
otel.instrumentation.micrometer.histogram-gauges.enabled | boolean | false | Enables gauge-based Micrometer histograms for DistributionSummary and Timer instruments. |
otel.instrumentation.micrometer.prometheus-mode.enabled | boolean | false | Simulates the behavior of Micrometer's PrometheusMeterRegistry. The instruments will be renamed to match Micrometer instrument naming, and the base time unit will be set to seconds. |