Adding metrics to applications

MicroProfile metrics provides an API for developers to add metrics to their applications. Metrics come in a variety of forms, including counters, gauges, timers, histograms, and meters. Real time values of all metrics are available from a call to a /metrics endpoint. Liberty applications can use the MicroProfile metrics API by enabling the mpMetrics-1.x or the mpMetrics-2.x features. Code that is instrumented with Dropwizard metrics might be able to run with MicroProfile metrics with minimal changes.

Open Liberty Documentation for the MicroProfile Metrics feature versions 2.0 and later is available on the Open Liberty website.