/statsd-reporter-example

an example of how to plugin custom reporters to dropwizard.io framework

Primary LanguageJavaApache License 2.0Apache-2.0

DropWizard.io statsd-reporter-example

Example showing how to integrate a custom statsd-reporter into Dropwizard.io. via the SPI [ReporterFactory] (https://github.com/dropwizard/dropwizard/blob/master/dropwizard-metrics/src/main/java/io/dropwizard/metrics/ReporterFactory.java). This is the native way of plugging in new ScheduledReporter's'

As mentioned in ReporterFactory class we're going to:

Integrating the StatsDReporter from ReadyTalk

Add metrics-statsd reporter as a dependency

Adding the StatsDReporterFactory

Adding the io.dropwizard.metrics.ReporterFactory services file

That's it, this can now be built and integrated into your dropwizard.io application. Check out this example to see how.

Build it

./gradlew build

Install it

./gradlew install

Use it in your own project

add as a dependency:

Gradle w/local install

dependencies {
    compile('com.netuitive.statsd-reporter-example:1.0-SNAPSHOT')
}

Update your dropwizard.io config.yml

metrics:
  frequency: 1 minute
  reporters:
      - type: statsd-reporter-example
        host: localhost
        port: 8125

Using bintray

...