dogstatsy
Version:
yet another node client for extended StatsD server of Datadog
34 lines (26 loc) • 473 B
Markdown
# dogstatsy
A simple DogStatsD client.
## Installation
```
$ npm install dogstatsy
```
## Example
```js
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);
```