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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?