This is a simple akka http application which exposes the metrics in Prometheus format.
<dependency>
<groupId>fr.davit</groupId>
<artifactId>akka-http-metrics-prometheus_2.12</artifactId>
<version>1.1.1</version>
</dependency>
Run the application and hit the below url:
http://localhost:8080/admin/prometheus/metrics
To expose a new custom metric, please see here https://github.com/er-rishi/akka-http-prometheus-metrics/tree/add-new-custom-metrics
To add a custom label to existing metrics, please see here https://github.com/er-rishi/akka-http-prometheus-metrics/tree/add-custom-label-in-existing-metric