metrics-instrumental ![Build Status](https://camo.githubusercontent.com/750c552300e412fc21cbba5b67f7f71ee9fc2b724d4f019c396a5b3e8fff0dfb/68747470733a2f2f7472617669732d63692e6f72672f6567696e656572696e672d6c6c632f6d6574726963732d696e737472756d656e74616c2e7376673f6272616e63683d6d6173746572)
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);