liveBook · Manning

Quarkus-micrometer-registry-prometheus

As explained in Quarkus in Action

quarkus-micrometer-registry-prometheus is a Quarkus extension that integrates Micrometer metrics with Prometheus exposition.

quarkus-micrometer-registry-prometheus adds Micrometer integration that exposes Quarkus application metrics in Prometheus format. Once enabled, the application collects default metrics and serves them through /q/metrics for inspection or scraping. section 10.3.6

A practical metrics workflow is:

  • Start the service in Dev mode and query /q/metrics or open its Prometheus link in Dev UI. section 10.3.6
  • Read # HELP and # TYPE lines as metadata, while unprefixed lines contain metric values. section 10.3.6
  • Run Prometheus and Grafana with Docker Compose to store and visualize the collected metrics. section 10.3.6

A JVM uptime metric

Prometheus output can expose process_uptime_seconds as a gauge, together with HELP text describing Java virtual-machine uptime.

How Quarkus in Action covers it

How deep it goes
Demonstrates installation, endpoint inspection, output interpretation, and Docker-based visualization without detailing registry internals.
Examples
Uses JVM uptime output, Grafana dashboards, and an Inventory service monitoring setup as concrete examples.
What you can do after
Operate/configure a Quarkus service that exposes metrics and supplies them to Prometheus and Grafana.
How it connects
Connects Micrometer metrics with Prometheus, Grafana, Docker Compose, Dev UI, and the Quarkus metrics endpoint.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.