Micrometer instruments JVM applications with dimensional metrics and tracing through a neutral API. You choose Prometheus, Datadog, OTLP, and many other backends at deploy time.
Overview
Micrometer provides an application observability facade similar in spirit to SLF4J, but for metrics and related telemetry. Java code can be instrumented once with timers, gauges, counters, distribution summaries, and long task timers, then exported to a monitoring system chosen later.
The core library includes out-of-the-box instrumentation for common components, and integrates with application frameworks such as Helidon, Micronaut, Quarkus, and Spring using each framework's native configuration style. Dimensional metrics let backends drill down across tags on named meters.
Micrometer can publish metrics to a long list of systems, including Prometheus, Datadog, Influx or Telegraf, CloudWatch, Azure Monitor, OpenTelemetry Protocol endpoints, StatsD, and others named on the project site. Micrometer Tracing wraps Brave and OpenTelemetry tracers for distributed tracing, described as the successor to Spring Cloud Sleuth.
The Micrometer Observation API offers one instrumentation path that can produce metrics, traces, logs, and related signals together. Artifacts target Java 8 or later, with additional modules for newer Java and server integrations.
Key features
- Vendor-neutral metrics API
- Dimensional meters
- Many backend registries
- Framework integrations
- Built-in component instrumentation
- Micrometer Tracing facade
- Unified Observation API
- OpenTelemetry and Brave support
Use cases
- Swap metrics backends without code changes
- Instrument Spring or Quarkus services
- Export to Prometheus or OTLP
- Distributed tracing in microservices
- Library metrics with neutral API