node-statsd icon indicating copy to clipboard operation
node-statsd copied to clipboard

Data not saved in graphite

Open birladeanuadrian opened this issue 6 years ago • 0 comments

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();
});

birladeanuadrian avatar Apr 17 '19 06:04 birladeanuadrian