in src/main/java/org/apache/sling/commons/metrics/rrd4j/impl/CodahaleMetricsReporter.java [129:146]
void activate(BundleContext context, Configuration config) throws Exception {
LOG.info("Starting RRD4J Metrics reporter");
configuration = config;
rrd = getSafePath(context, config);
reporter = RRD4JReporter.forRegistry(metricRegistry)
.withPath(rrd)
.withDatasources(config.datasources())
.withArchives(config.archives())
.withStep(config.step())
.build();
if (reporter != null) {
reporter.start(config.step(), TimeUnit.SECONDS);
LOG.info("Started RRD4J Metrics reporter: {}.", reporter);
} else {
LOG.warn("Illegal config will not start the RRD reporter. [path={}, datasources={}, archives={}, step={}].",
rrd.getPath(), config.datasources(), config.archives(), config.step());
}
}