A Vert.x application instrumented using Prometheus
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
src/main
.classpath
.gitignore
.project
LICENSE
README.md
pom.xml
sample_output.txt

README.md

A Vert.x application instrumented using Prometheus

This project is a sample application instrumented using Prometheus libraries. Application exposes an endpoint to allow Prometheus to scrape the metrics. The exposed metrics are:

  • Internal metrics of the Vert.x toolkit, see also Vert.x Dropwizard Metrics
  • Java Virtual Machine metrics
  • Log metrics (counts how many DEBUG, INFO, WARN and ERROR messages have been logged)
  • A custom metric (mycounter)

Metrics are exposed in the Prometheus's text format at the endpoint http://localhost:8080/metrics

A sample of the exposed metrics can be found in the file sample_output.txt

Build this project:

$ mvn clean package

Run the application:

$ java -jar ./target/vertx-metrics-1.0-SNAPSHOT-fat.jar

Get the metrics in Prometheus format:

$ curl localhost:8080/metrics