Statsd reporter for codahale/metrics.
Java Shell Groovy
Pull request Compare This branch is 69 commits ahead, 7 commits behind organicveggie:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config/checkstyle
gradle/wrapper
metrics-statsd-common
metrics2-statsd
metrics3-statsd
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

metrics-statsd Build Status

StatsD reporter for codahale/metrics. Supports versions 2 and 3.

Quick Start

MetricRegistry registry = new MetricRegistry();

// Using metrics2-statsd
StatsDReporter reporter = new StatsDReporter(registry,
    "statsd.example.com",
    8125,
    "metric.prefix");
reporter.start(10, TimeUnit.SECONDS);

// Using metrics3-statsd
StatsDReporter.forRegistry(registry)
    .build("statsd.example.com", 8125)
    .start(10, TimeUnit.SECONDS);

Gradle

repositories {
  mavenRepo(url: 'http://dl.bintray.com/readytalk/maven')
}

// for Metrics 2.x
compile('com.readytalk:metrics2-statsd:4.1.0')
// for Metrics 3.x
compile('com.readytalk:metrics3-statsd:4.1.0')

Maven

Instructions for including metrics-statsd into a maven project can be found on the bintray repository.

Building

./gradlew install #installs metrics2 and metrics3 libraries to your local maven repository

Credits

This is based off of Sean Laurent's metrics-statsd and the graphite module of Coda Hale's Metrics