https://github.com/moscajs/aedes-stats
Stats for Aedes
https://github.com/moscajs/aedes-stats
aedes nodejs
Last synced: 19 days ago
JSON representation
Stats for Aedes
- Host: GitHub
- URL: https://github.com/moscajs/aedes-stats
- Owner: moscajs
- License: mit
- Created: 2016-07-02T13:38:54.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T07:22:22.000Z (about 1 year ago)
- Last Synced: 2025-04-19T07:42:30.557Z (about 1 month ago)
- Topics: aedes, nodejs
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 25
- Watchers: 7
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aedes-stats

[](http://standardjs.com/)
[](https://github.com/moscajs/aedes-stats/graphs/commit-activity)
[](https://github.com/moscajs/aedes-stats/pulls)\
[](https://coveralls.io/github/moscajs/aedes-stats?branch=main)
[](https://snyk.io/test/github/moscajs/aedes-stats)\

[](https://www.npmjs.com/package/aedes-stats)
[](https://www.npmjs.com/package/aedes-stats)[](https://opencollective.com/aedes/donate)
Stats for [Aedes](http://npm.im/aedes)
## Install
```sh
npm i aedes aedes-stats --save
```## Example
```js
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