https://github.com/kovszilard/twitter-server-prometheus
Prometheus metrics for Twitter Server.
https://github.com/kovszilard/twitter-server-prometheus
finagle finagle-exporter finagle-stats metrics prometheus prometheus-metrics twitter twitter-server
Last synced: 5 months ago
JSON representation
Prometheus metrics for Twitter Server.
- Host: GitHub
- URL: https://github.com/kovszilard/twitter-server-prometheus
- Owner: kovszilard
- License: mit
- Created: 2019-02-07T11:57:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T17:22:06.000Z (over 2 years ago)
- Last Synced: 2024-01-27T06:08:45.360Z (over 2 years ago)
- Topics: finagle, finagle-exporter, finagle-stats, metrics, prometheus, prometheus-metrics, twitter, twitter-server
- Language: Scala
- Homepage:
- Size: 65.4 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 19
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus metrics for Twitter Server
[](https://travis-ci.org/kovszilard/twitter-server-prometheus)
[](https://search.maven.org/search?q=twitter-server-prometheus)
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fkovszilard%2Fsmenu)
[](https://twitter.com/intent/follow?screen_name=kovszilard)
Metrics exporter for twitter server, exposing prometheus metrics.
Based on the blog post and code from [Footballradar](https://engineering.footballradar.com/prometheus-at-football-radar/)
## Features
* Integrated to the admin UI 
* 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:
```scala
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.
```scala
object MyApp extends TwitterServer with PrometheusExporter {
// ...
}
```