twitter-server-prometheus

Prometheus metrics for Twitter Server.

License

License

Categories

Categories

Prometheus Application Testing & Monitoring Monitoring
GroupId

GroupId

com.github.kovszilard
ArtifactId

ArtifactId

twitter-server-prometheus_2.12
Last Version

Last Version

19.10.0
Release Date

Release Date

Type

Type

jar
Description

Description

twitter-server-prometheus
Prometheus metrics for Twitter Server.
Project URL

Project URL

https://github.com/kovszilard/twitter-server-prometheus
Project Organization

Project Organization

kovszilard
Source Code Management

Source Code Management

https://github.com/kovszilard/twitter-server-prometheus

Download twitter-server-prometheus_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.kovszilard/twitter-server-prometheus_2.12/ -->
<dependency>
    <groupId>com.github.kovszilard</groupId>
    <artifactId>twitter-server-prometheus_2.12</artifactId>
    <version>19.10.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.kovszilard/twitter-server-prometheus_2.12/
implementation 'com.github.kovszilard:twitter-server-prometheus_2.12:19.10.0'
// https://jarcasting.com/artifacts/com.github.kovszilard/twitter-server-prometheus_2.12/
implementation ("com.github.kovszilard:twitter-server-prometheus_2.12:19.10.0")
'com.github.kovszilard:twitter-server-prometheus_2.12:jar:19.10.0'
<dependency org="com.github.kovszilard" name="twitter-server-prometheus_2.12" rev="19.10.0">
  <artifact name="twitter-server-prometheus_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.kovszilard', module='twitter-server-prometheus_2.12', version='19.10.0')
)
libraryDependencies += "com.github.kovszilard" % "twitter-server-prometheus_2.12" % "19.10.0"
[com.github.kovszilard/twitter-server-prometheus_2.12 "19.10.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.10
com.twitter : twitter-server_2.12 jar 19.10.0
com.twitter : finagle-stats_2.12 jar 19.10.0
io.prometheus : simpleclient jar 0.8.0
io.prometheus : simpleclient_common jar 0.8.0

Project Modules

There are no modules declared in this project.

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

Versions

Version
19.10.0
19.9.0
19.8.0
19.7.0
19.6.0
19.5.1
19.1.0