Experimental/Unstable
var graphite = require('graphite-promise'),
client = graphite.createClient(<graphite-url> e.g 'plaintext://127.0.0.1:2003/'
|| {hostedGraphiteKey: 'a key', url: 'graphite url'});
client.write(metric, timestamp)
.then(function(){})
.catch(function(reason){})
.finally(function(){
client.end();
});
client.write({home:{indoor:{temp:21.2}}}, 1427727486200);
This project began as a fork of https://github.com/felixge/node-graphite