hapijs-status-monitor

? Realtime Monitoring solution for Hapi.js apps

Github stars Tracking Chart

hapijs-status-monitor

Build Status npm Coverage Status

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

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

  1. Go to cd examples/
  2. Run npm i
  3. Run server npm start
  4. 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,     // Every second
  retention: 60    // Keep 60 datapoints in memory
}, {
  interval: 5,     // Every 5 seconds
  retention: 60
}, {
  interval: 15,    // Every 15 seconds
  retention: 60
}],
routeConfig: {}  // Route options, see https://github.com/hapijs/hapi/blob/master/API.md#route-options

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.

Main metrics

Overview
Name With Ownerbugthesystem/hapijs-status-monitor
Primary LanguageJavaScript
Program languageHTML (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2016-08-19 19:04:12
Pushed At2023-07-11 22:15:02
Last Commit At2023-04-27 11:48:58
Release Count8
Last Release Namev1.0.1 (Posted on )
First Release Namev0.1.0 (Posted on 2016-11-20 10:07:20)
用户参与
Stargazers Count139
Watchers Count4
Fork Count28
Commits Count197
Has Issues Enabled
Issues Count22
Issue Open Count5
Pull Requests Count23
Pull Requests Open Count3
Pull Requests Close Count22
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private