node-statsd
node-statsd copied to clipboard
Data not saved in graphite
When I try to use gauge for a graphite server, I don't get any errors, but the data is not saved.I use graphite:latest from docker, node-statsd version 0.1.1. Code snippet:
graphite = new StatsD({
host: GRAFANA_SERVER,
port: GRAFANA_PORT,
mock: false
});
graphite.socket.on('error', function(error) {
return console.error('Error', error);
});
graphite.gauge('gauge.two', 2, undefined, undefined, function(err, bytesSent) {
console.log('Finished gauge', err, bytesSent); // bytesSent=13
graphite.close();
});