sebastiandaschner blog

Monitoring Open Liberty with Prometheus & Grafana (Video)

#openliberty #grafana #prometheus wednesday, march 13, 2019

I’ve recorded a video how to add monitoring to Open Liberty instances using Prometheus and Grafana, by simply configuring server features.

Open Liberty can emit technical metrics of server internals if we simply add the monitoring feature (monitor-1.0). The metrics are exposed in the Prometheus format if we further use the MicroProfile Metrics feature (mpMetrics-1.1).

In the video I’ll show how to configure Open Liberty and how to run the instance together with a database and Prometheus in a Kubernetes cluster. We’ll also see an example Grafana dashboard that displays the technical metrics.

For your production environment, you’ll certainly need to modify which and how data is being displayed. However, this examples gives you a handy starting point.

Update 2020-02-18:

With MicroProfile Metrics 2.0, the metrics format has changed, which unfortunately results in different metric names and incompatibilities. If you’re using MicroProfile Metrics 2.0 (that is, Liberty feature mpMetrics-2.0), you can have a look at the new public Liberty dashboard for MP Metrics 2.0.

I’ve also updated the examples in the GitHub repository for Metrics 2.0.


Found the post useful? Subscribe to my newsletter for more free content, tips and tricks on IT & Java: