Skip to content

Instantly share code, notes, and snippets.

GraphiteReporter reporter = GraphiteReporter.forRegistry(metricRegistry())
.prefixedWith(getHostname()).convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.filter((name, metric) -> !name.toLowerCase().contains("servo"))
.build(new Graphite(new InetSocketAddress("sv-graphite.idincu.net", 2003)));
reporter.start(1, TimeUnit.MINUTES);
private MetricRegistry metricRegistry() {