Category: Software, Database, Data

by Spring Boot 2.0 introduced a new level of metrics with the Micrometer library, making integration of our code with monitoring systems like Prometheus and Graphite simpler than ever.

Our monitoring server is Prometheus, this is what we get in /actuator/prometheus endpoint (note that all delimiters in counter name or tag name are replaced with underscores): In Grafana we can see a graph of messages per customer by the query

Each type has its own processing time, and we want to measure by a timer the processing latency per type.

In Grafana we sum by both customer and message_type tags: (Legend format {{customer}} -{{message_type}} is the short notation of that values in the legend)

Related Articles