dogstatsy
yet another node client for extended StatsD server of Datadog
Last updated 6 years ago by generalhenry .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dogstatsy 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (3)

Copyright 2014 - 2016 © taobao.org |