bcoughlan / metrics-influxdb

A reporter for metrics which announces measurements to an InfluxDB server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;
}

CC0
To the extent possible under law, Novaquark has waived all copyright and related or neighboring rights to this work.

About

A reporter for metrics which announces measurements to an InfluxDB server.

License:Creative Commons Zero v1.0 Universal


Languages

Language:Java 100.0%