# Micrometer

<!-- llms-txt-link: /llms.txt -->

> 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. |

## Data

- **JSON**: [/data/javaagent/instrumentations/micrometer-1.5/micrometer-1.5-16b7b58c3d7f.json](/data/javaagent/instrumentations/micrometer-1.5/micrometer-1.5-16b7b58c3d7f.json)
- **Explore**: [/java-agent/instrumentation/micrometer-1.5](/java-agent/instrumentation/micrometer-1.5)
