kovszilard / twitter-server-prometheus

Prometheus metrics for Twitter Server.

Version Matrix

Prometheus metrics for Twitter Server

Build Status Maven central

This project is a simple metrics exporter from twitter server to prometheus based on the blog post and code from Footballradar

Features

  • 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
  • A link is included on the Admin Ui to the exported data

Usage

Include 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 {
  // ...
}