/akka-http-prometheus-metrics

This application exposes the metrics in prometheus format

Primary LanguageScala

akka-http-prometheus-metrics

This is a simple akka http application which exposes the metrics in Prometheus format.

Add the dependency to get the metrics

    <dependency>
            <groupId>fr.davit</groupId>
            <artifactId>akka-http-metrics-prometheus_2.12</artifactId>
            <version>1.1.1</version>
    </dependency>

Check the metrics

Run the application and hit the below url:

http://localhost:8080/admin/prometheus/metrics

Expose new custom metric

To expose a new custom metric, please see here https://github.com/er-rishi/akka-http-prometheus-metrics/tree/add-new-custom-metrics

Add a custom label to existing 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