dogstatsy
v0.0.1
Published
yet another node client for extended StatsD server of Datadog
Downloads
2
Readme
dogstatsy
A simple DogStatsD client.
Installation
$ npm install dogstatsy
Example
var Client = require('dogstatsy');
var http = require('http');
var stats = new Client({
service: 'example'
});
setInterval(function(){
stats.incr('requests', {
basic: 'tag'
});
var end = stats.timer('request');
http.get('http://yahoo.com', function(err, res){
// do stuff
end({
statusCode: res.statusCode
});
});
}, 1000);