hapijs-status-monitor

? Realtime Monitoring solution for Hapi.js apps

Github星跟踪图

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.

主要指标

概览
名称与所有者bugthesystem/hapijs-status-monitor
主编程语言JavaScript
编程语言HTML (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2016-08-19 19:04:12
推送于2023-07-11 22:15:02
最后一次提交2023-04-27 11:48:58
发布数8
最新版本名称v1.0.1 (发布于 )
第一版名称v0.1.0 (发布于 2016-11-20 10:07:20)
用户参与
星数139
关注者数4
派生数28
提交数197
已启用问题?
问题数22
打开的问题数5
拉请求数23
打开的拉请求数3
关闭的拉请求数22
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?