jmxReporter = JmxReporter.forRegistry(detailedRegistry).build();
jmxReporter.start();
}
if (isSlf4jPublish()) {
Slf4jReporter logReporter = Slf4jReporter.forRegistry(summaryRegistry)
.outputTo(LoggerFactory.getLogger(OpenGammaMetricRegistry.class))
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
logReporter.start(1, TimeUnit.MINUTES);
logReporter = Slf4jReporter.forRegistry(detailedRegistry)
.outputTo(LoggerFactory.getLogger(OpenGammaMetricRegistry.class))
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
logReporter.start(1, TimeUnit.MINUTES);
}
if (isGangliaPublish()) {
// Only publish on Ganglia for summary.
ArgumentChecker.notNull(getGangliaAddress(), "gangliaAddress");