use of org.commonjava.indy.metrics.zabbix.reporter.IndyZabbixReporter in project indy by Commonjava.
the class ReporterIntializer method initZabbixReporterForHealthCheckMetric.
private void initZabbixReporterForHealthCheckMetric(MetricRegistry metrics, IndyMetricsConfig config) {
IndyZabbixReporter reporter = initZabbixReporter(metrics, config).filter((name, metric) -> {
if (!name.contains(FILTER_SIMPLE) && name.contains(FILTER_HEALTHCHECK)) {
return true;
}
return false;
}).build(initZabbixSender());
reporter.start(config.getZabbixHealthcheckPeriod(), TimeUnit.SECONDS);
}
use of org.commonjava.indy.metrics.zabbix.reporter.IndyZabbixReporter in project indy by Commonjava.
the class ReporterIntializer method initZabbixReporterForSimpleMetric.
private void initZabbixReporterForSimpleMetric(MetricRegistry metrics, IndyMetricsConfig config) {
IndyZabbixReporter reporter = initZabbixReporter(metrics, config).filter((name, metric) -> {
if (name.contains(FILTER_SIMPLE)) {
return true;
}
return false;
}).build(initZabbixSender());
reporter.start(config.getZabbixSimplePriod(), TimeUnit.SECONDS);
}
use of org.commonjava.indy.metrics.zabbix.reporter.IndyZabbixReporter 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