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
- Host: GitHub
- URL: https://github.com/runnable/dogstatsy
- Owner: Runnable
- Created: 2014-04-22T22:30:52.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T02:15:45.000Z (over 11 years ago)
- Last Synced: 2025-08-09T04:47:14.484Z (11 months ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```