No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
NOTICE
README.md
pom.xml

README.md

metrics-instrumental Build Status

This is a reporter for the Dropwizard Metrics library which publishes metrics to Instrumental, a cloud-based metrics tool.

Example Usage

If you're using maven, add the following dependency

<dependency>
  <groupId>com.e-gineering</groupId>
  <artifactId>metrics-instrumental</artifactId>
  <version>3.1.0.1</version>
</dependency>

Then, somewhere in your code, create an Instrumental instance with your api key, and start a reporter.

Instrumental instrumental = new Instrumental("your_api_key");
instrumental.notice("Starting up...");
InstrumentalReporter instrumentalReporter = InstrumentalReporter.forRegistry(registry)
                                                                .convertRatesTo(TimeUnit.SECONDS)
                                                                .convertDurationsTo(TimeUnit.MILLISECONDS)
                                                                .build(instrumental);
reporter.start(5, TimeUnit.SECONDS);