pm2-mongodb-stats
PM2 MongoDB Stats Metrics
- MongoDB Version
- Uptime
- Queries, input, updates, deletes (AVG per second)
- Number of connections
- Connections per seconds
- Network speed (input and output)
Install
pm2 install pm2-mongodb-stats
or
pm2 install jodacame/pm2-mongodb-stats
Uninstall
pm2 uninstall pm2-mongodb-stats
or
pm2 uninstall jodacame/pm2-mongodb-stats
Set mongo connection (Optional)
pm2 set pm2-mongodb-stats:mongo <string connection>
Example:
pm2 set pm2-mongodb-stats:mongo 'mongodb://localhost:27017/admin'
Required
- pm2
npm install pm2 -g
- mongodb
npm mongodb pm2 -g