Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

NPM Version node Build Status js-standard-style

micro-stats

馃搳 Tiny statsd helper

Installation

Install from NPM:

$ npm install micro-stats --save

Examples

const track = require('micro-stats')

module.exports = track(function (req, res) {
  req.end(200)
})

module.exports = track(options, function (req, res) {
  req.end(200)
})

Options

  • host - optional statsd host [process.env.STATSD_HOST]
  • port - optional statsd port [process.env.STATSD_PORT]
  • prefix - optional statsd prefix ('.' is appended) [process.env.STATSD_PREFIX]
  • tcp - use TCP instead of UDP

About

馃搳 Tiny statsd helper

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages