hapijs-status-monitor
![Coverage Status](https://coveralls.io/repos/github/ziyasal/hapijs-status-monitor/badge.svg?branch=master)
Simple, self-hosted module based on Socket.IO and
Chart.js to report realtime server metrics for
hapi.js servers.
Inspired from express-status-monitor
![screenshot](https://github.com/ziyasal/hapijs-status-monitor/raw/HEAD/./docs/images/screenshot.jpg)
Installation & setup
Install package
npm install hapijs-status-monitor --save
Register plugin
await server.register({ plugin: require('hapijs-status-monitor') });
Run server and go to /status
Run examples
- Go to
cd examples/
- Run
npm i
- Run server
npm start
- Go to
http://localhost:8000/status
Options
Monitor can be configured by passing options object into server register method
await server.register({
plugin: require('hapijs-status-monitor'),
options: {
title: 'My Status Monitor',
routeConfig: {
auth: false
}
}
});
Default options:
title: 'hapi.js Status',
path: '/status',
spans: [{
interval: 1,
retention: 60
}, {
interval: 5,
retention: 60
}, {
interval: 15,
retention: 60
}],
routeConfig: {}
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
Copyright (c) 2016-present @ziyasal & @danielbayerlein.
See LICENSE for details.