// Start a Ganglia reporter if specified in the config
String gangliaHost = properties.getProperty(METRICCATCHER_GANGLIA_HOST);
String gangliaPort = properties.getProperty(METRICCATCHER_GANGLIA_PORT);
if (gangliaHost != null && gangliaPort != null) {
logger.info("Creating Ganglia reporter pointed at " + gangliaHost + ":" + gangliaPort);
GangliaReporter gangliaReporter = new GangliaReporter(gangliaHost, Integer.parseInt(gangliaPort));
gangliaReporter.printVMMetrics = !disableJvmMetrics;
gangliaReporter.start(reportingInterval, TimeUnit.SECONDS);
}
// Start a Graphite reporter if specified in the config
String graphiteHost = properties.getProperty(METRICCATCHER_GRAPHITE_HOST);
String graphitePort = properties.getProperty(METRICCATCHER_GRAPHITE_PORT);