All Projects → moscajs → aedes-stats

moscajs / aedes-stats

Licence: MIT license
Stats for Aedes

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aedes-stats

aedes-cli
Run Aedes MQTT Broker from the CLI
Stars: ✭ 29 (+20.83%)
Mutual labels:  aedes

aedes-stats

ci js-standard-style Maintenance PRs Welcome
Total alerts Language grade: JavaScript Coverage Status Known Vulnerabilities
node NPM version NPM downloads

opencollective

Stats for Aedes

Install

npm i aedes aedes-stats --save

Example

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

stats(instance)

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].