StatsD reporter for codahale/metrics. Supports versions 2 and 3.
MetricRegistry registry = new MetricRegistry();
StatsDReporter.forRegistry(registry)
.build(new StatsD(new InetSocketAddress("statsd.example.com", 8125)))
.start(1, TimeUnit.MINUTES);
repositories {
mavenRepo(url: 'http://dl.bintray.com/readytalk/maven')
}
compile('com.readytalk:metrics3-statsd:3.X.X')
Instructions for including metrics-statsd into a maven project can be found on the bintray repository.
This is based off of Sean Laurent's metrics-statsd and the graphite module of Coda Hale's Metrics