An open API service indexing awesome lists of open source software.

https://github.com/runnable/dogstatsy

yet another node client for extended StatsD server of Datadog
https://github.com/runnable/dogstatsy

Last synced: 9 months ago
JSON representation

yet another node client for extended StatsD server of Datadog

Awesome Lists containing this project

README

          

# This isn't being actively maintained, you may be better off using: [node-dogstatsd](https://www.npmjs.com/package/node-dogstatsd)

# 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);

```