Collection of utilities to allow exposing prometheus metrics from pekko-http endpoint using the prometheus java client
"com.varwise" %% "prometheus-pekko-http" % "2.0.0"
prometheus-akka-http - same thing but for akka-http
Version 2.0.0 uses Prometheus Java client library 1.0.0 which introduced some breaking changes.
Here's the quick migration guide:
- Replace occurrences of
io.prometheus.client.CollectorRegistry
withio.prometheus.metrics.model.registry.PrometheusRegistry
. - Supply
ExecutionContext
instance toMetricsEndpoint
.
For more information about Prometheus Java client library please refer to https://prometheus.github.io/client_java/.
Artifacts are published to Maven central using the sbt-sonatype plugin
Building howto:
sbt
; + publishSigned; sonatypeBundleRelease