Skip to content

bspindler/statsd-reporter-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

...

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages