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

Readme

Keywords

Package Sidebar

Install

npm i dogstatsy

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • runnabear