MicroProfile® MicroProfile Metrics 5.1

MicroProfile Metrics aims to provide a set of Java interfaces and programming models which allow Java developers to add metrics instrumentation to their applications. MicroProfile Metrics also aims to provide convenient ways for operations teams to gather metrics data from compatible implementations.

The goal of this release is to add configurability to the existing metrics types to give more flexibility to operations teams using MicroProfile Metrics in different situations.

Functional changes

There is currently no standard way to enable/disable specific metrics.

  • make it easy to enable/disable specific metrics through config [686]

There is currently no way to get a lightweight timer (all timers currently have quantiles in their Prometheus output, which requires data and processing at runtime). Adding ability to enable/disable quantiles is something we wanted for MicroProfile Metrics 5.0, but didn't have time to include.

  • add ability to enable/disable quantiles for Timers/Histograms [673]
  • add ability to set quantile values for Timers/Histograms [675]

Users have asked for ability to have distribution buckets for timers for service level objective tracking.

  • add ability to enable/disable distribution buckets for Timers/Histograms [674][691]
  • add ability to set distribution bucket ranges for Timers/Histograms [676]

Improvement to API

  • make @RegistryScope be a qualifier [749]
Release Date
Release Type
Minor release