2.1.0 • Published 9 years ago

qb-statsd v2.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

qb-statsd

Adds StatsD statistics to your qb instance.

Usage

npm install qb-statsd --save
qb.component(require('qb-statsd'), {
  instance: <instance_of_StatsD>, // if you have your own instance
  host: 'mystatsdhost.domain.tld', // if no instance, host is REQUIRED
  port: 8125, // if no instance already setup, port is REQUIRED
  prefix: 'my.prefix', // defaults to `all.`, not used if instance is passed
  heartbeat: 5000 // OPTIONAL, if set, every `heartbeat` milliseconds, a heartbeat will be registered with statsd as an increment
})

var statsdInstance = qb._statsd

Statsd Stats

  • Heartbeat: Set to increment every conf.heartbeat ms. (Not done if conf.heartbeat is falsy)
  • For every task type, a counter of prefix.tasktype.event will be kept, with events of: ['push', 'process', 'success', 'failure']

License

MIT in LICENSE file

2.1.0

9 years ago

2.0.0

9 years ago

2.0.0-rc1

9 years ago

0.1.2

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago