graphiteConfiguration.getFrequency().toNanoseconds(),
TimeUnit.NANOSECONDS,
graphiteConfiguration.getHost(),
graphiteConfiguration.getPort(),
graphiteConfiguration.getPrefix(),
new MetricPredicate() {
@Override
public boolean matches(final MetricName name, final Metric metric) {
return !graphiteConfiguration.getExcludes().contains(pathFor(name));
}