Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Data not saved in graphite #74

Open
birladeanuadrian opened this issue Apr 17, 2019 · 0 comments
Open

Data not saved in graphite #74

birladeanuadrian opened this issue Apr 17, 2019 · 0 comments

Comments

@birladeanuadrian
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant