aedes-stats

4.0.0 • Public • Published

aedes-stats

Dependencies Status devDependencies Status
Known Vulnerabilities Coverage Status NPM version NPM downloads

Stats for Aedes

Install

npm i aedes aedes-stats --save

Example

var aedes = require('aedes')
var stats = require('aedes-stats')
var instance = aedes()
 
stats(aedes)

Options

An object containing options can be passed in as the second argument to stats.

  • interval: ms to wait between publishing stats (defaults to 1000)

Topics and Stats published

  • $SYS/{ID}/uptime
  • $SYS/{ID}/time
  • $SYS/{ID}/clients/total
  • $SYS/{ID}/clients/maximum
  • $SYS/{ID}/messages/publish/sent
  • $SYS/{ID}/memory/heap/current
  • $SYS/{ID}/memory/heap/maximum

Where {ID} is the aedes instance id.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i aedes-stats

Weekly Downloads

800

Version

4.0.0

License

MIT

Unpacked Size

14.3 kB

Total Files

6

Last publish

Collaborators

  • getlarge
  • gnought
  • roberts_lando
  • matteo.collina