๐ Tiny statsd helper
Install from NPM:
$ npm install micro-stats --save
const track = require('micro-stats')
module.exports = track(function (req, res) {
req.end(200)
})
module.exports = track(options, function (req, res) {
req.end(200)
})
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