Graphite transport for NodeJS winston logging library
npm install winston-graphite
A Graphite TCP transport for winston.
var winston = require('winston');
//
// Requiring `winston-graphite` will expose
// `winston.transports.Graphite`
//
require('winston-graphite');
winston.add(winston.transports.Graphite, {
port: 2003,
host: '127.0.0.1'
});
winston.info(
'mymetric.category_1 100'
);
// or
winston.info('mymetric.category_1', {value: 100, timestamp: 1435708800});
It currenlty works on our infrastructure, and processes about 500K datapoints per minute
See LICENSE for the full license text.