Monitoring utilities for qb.
Gathers statistics on the queue size for qb-relyq, and exposes via statsd or http, usually in conjunction with qb-statsd and qb-http respectively.
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
qb.component(qbMonitor.http, {endpoint: '/my-qb-stats'})
// qb-monitor can also notify statsd (using a qb-statsd instance or other statsd object)
qb.component(qbMonitor.statsd, {interval: 1000, prefix: 'monitor.'})appPass in an expressappifqb-httpisn't being used.endpointPlace to get stats information (default:'/stats')
statsdPass in astatsdclient ifqb-statsdisn't being used.intervalMilliseconds between stats gatheringprefixPrefix before stats in statsd. Note that the client also can hold a prefix, and theqb-statsdprefix applies.
MIT in LICENSE file