if (config.isInhibitMetrics()) {
log.info("Not starting metrics");
metrics = new NoopMetrics();
} else {
log.info("Starting metrics");
metrics = new MetricsImpl(metricsRegistry);
environment.lifecycle().manage(new ManagedStatsdReporter(config.getStatsdHostPort(),
"helios-agent", metricsRegistry));
environment.lifecycle().manage(riemannSupport);
}