qb-monitor

2.0.0 • Public • Published

qb-monitor

Monitoring utilities for qb.

Specifically focuses on monitoring queue size.

Usage

npm install qb-monitor --save
var qbMonitor = require('qb-monitor')
 
// qb-monitor's http interface can be used on a qb-http instance or a passed in connect app
qbMonitor.enableHttp(qb.speaks(require('qb-http')), {prefix: prefix /*defaults to <api-base>/stats*/})
qbMonitor.enableHttp(qb, {app: app})
 
// qb-monitor can also notify statsd (using a qb-statsd instance or other statsd object)
require('qb-statsd').enable(qb)
qbMonitor.enableStatsd(qb, {interval: 1000 /* ms */})
qbMonitor.enableStatsd(qb, {statsd: statsd})

License

MIT in LICENSE file

Readme

Keywords

Package Sidebar

Install

npm i qb-monitor

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • yanatan16
  • leroix
  • runningskull