Metrics exporter for twitter server, exposing prometheus metrics.
Based on the blog post and code from Footballradar
/metrics
http endpoint./admin/metrics.json
.count
, sum
, min
, max
, avg
and quantile
data just like in FinagleInclude it in your project by adding the following to your build.sbt:
libraryDependencies += "com.github.kovszilard" %% "twitter-server-prometheus" % "19.10.0"
Once you have the SBT dependency, you can mix in the PrometheusExporter
trait to your App.
object MyApp extends TwitterServer with PrometheusExporter {
// ...
}