A reporter for metrics which announces measurements to an InfluxDB server.
Usage sample :
private static InfluxdbReporter startInfluxdbReporter(MetricRegistry registry) throws Exception {
final Influxdb influxdb = new Influxdb("127.0.0.1", 8086, "mydb", "user", "pass");
final InfluxdbReporter reporter = InfluxdbReporter
.forRegistry(registry)
.prefixedWith("test")
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.filter(MetricFilter.ALL)
.build(influxdb);
reporter.start(10, TimeUnit.SECONDS);
return reporter;
}
To the extent possible under law,
Novaquark
has waived all copyright and related or neighboring rights to
this work.