![JAR search and dependency download from the Maven repository](/logo.png)
net.savantly.graphite.impl.MockCarbonSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphite-client Show documentation
Show all versions of graphite-client Show documentation
Connects to a carbon/graphite instance to push metrics
The newest version!
package net.savantly.graphite.impl;
import java.util.Collection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.savantly.graphite.CarbonMetric;
import net.savantly.graphite.CarbonSender;
public class MockCarbonSender implements CarbonSender {
private static final Logger log = LoggerFactory.getLogger(MockCarbonSender.class);
@Override
public void sendToCarbon(CarbonMetric metric) {
log.info(String.format("Received CarbonMetric: %s", metric));
}
@Override
public void sendToCarbon(Collection metrics) {
for (CarbonMetric carbonMetric : metrics) {
log.info(String.format("Received CarbonMetric: %s", carbonMetric));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy