Stats for Aedes
npm i aedes aedes-stats --save
var aedes = require('aedes')
var stats = require('aedes-stats')
var instance = aedes()
stats(instance)
An object containing options can be passed in as the second argument to stats
.
interval
: ms to wait between publishing stats (defaults to 1000)
$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.
MIT