Skip to content

dotcypress/micro-stats

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

License

Stars

Watchers

Forks

Packages

No packages published