final Builder builder =
GraphiteReporter.forRegistry(metricRegistry).convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS).filter(MetricFilter.ALL);
if (StringUtils.isNotBlank(metricPrefix)) {
LOGGER.info("Metric prefix: {}", metricPrefix);
builder.prefixedWith(metricPrefix);
}
final GraphiteReporter reporter = builder.build(graphite);
reporter.start(pollTimeMinutes, TimeUnit.MINUTES);