morgaroth / metrics-statsd   1.5.0

Apache License 2.0 GitHub

Statsd reporter for codahale/metrics with support to StatsD over UDP and TCP.

Scala versions: 2.11 2.10


Statsd reporter for [codahale/metrics] (, based on Sean Laurent's [metrics-statsd] (, Mike Keesey's [metrics-statsd] (, Hannes Heijkenskjöld [metrics-statsd] ( and Mayconbordin [metrics-statsd] ( with added support for the TCP protocol.

Only version 3.x of the Metrics library is supported.


libraryDependencies += "io.github.morgaroth" %% metrics-statsd" % "1.5.1"

Quick Start

The 3.x version of the Metrics library uses the builder pattern to construct reporters. Below is an example of how to create a StatsdReporter and report out metrics every 15 seconds.

StatsDReporter reporter = StatsDReporter.forRegistry(registry)
        .build("localhost", 8125, "tcp");

reporter.start(15, TimeUnit.SECONDS);