use of org.commonjava.indy.metrics.conf.IndyMetricsConfig in project indy by Commonjava.
the class ReporterIntializer method initZabbixReporterForJVMMetric.
private void initZabbixReporterForJVMMetric(MetricRegistry metrics, IndyMetricsConfig config) {
IndyZabbixReporter reporter = initZabbixReporter(metrics, config).filter((name, metric) -> {
if (!name.contains(FILTER_SIMPLE) && name.contains(FILTER_JVM)) {
return true;
}
return false;
}).build(initZabbixSender());
reporter.start(config.getZabbixJVMPriod(), TimeUnit.SECONDS);
}
Aggregations