dogstatsy

0.0.1 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.10

Package Sidebar

Install

npm i dogstatsy

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • runnabear