Skip to content

deal-engine/twitter-server-prometheus

 
 

Repository files navigation

Prometheus metrics for Twitter Server

Build Status Maven central Tweet Twitter follow

Metrics exporter for twitter server, exposing prometheus metrics.

Based on the blog post and code from Footballradar

Features

  • Integrated to the admin UI Screenshot
  • Metrics are exposed on the admin port /metrics http endpoint.
  • The service is detached from the main thread pool of the rest of the app just like the /admin/metrics.json.
  • Exported histograms include count, sum, min, max, avg and quantile data just like in Finagle

Usage

Include it in your project by adding the following to your build.sbt:

libraryDependencies += "com.github.kovszilard" %% "twitter-server-prometheus" % "20.10.0"

Once you have the SBT dependency, you can mix in the PrometheusExporter trait to your App.

object MyApp extends TwitterServer with PrometheusExporter {
  // ...
}

Example

See Example.scala

and run it with:

sbt example/runMain com.github.kovszilard.twitter.server.prometheus.Example

About

Prometheus metrics for Twitter Server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 89.5%
  • Shell 10.5%