Skip to content

πŸš€ Realtime Monitoring solution for koa.js, inspired by status.github.com

License

Notifications You must be signed in to change notification settings

capaj/koa-monitor

This branch is 21 commits ahead of, 277 commits behind RafalWilinski/express-status-monitor:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d4ca34a Β· Feb 1, 2019

History

66 Commits
Feb 1, 2019
Aug 21, 2016
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019
Feb 1, 2019

Repository files navigation

koa-monitor npm badge

Simple, self-hosted module based on Socket.io and Chart.js to report realtime server metrics for koa.js-based node servers.

Monitoring Page

Installation & setup

  1. Run npm install koa-monitor --save
  2. Before any other middleware add following line:
const monitor = require('koa-monitor')
// then after
app.use(monitor(server, { path: '/status' }))
  1. Run server and go to /status

Options

Monitor can be configured by passing options(second argument) object into monitor constructor.

Default config:

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
}]

For an example koa server, check out `sample/server.js'

License

MIT License Β© JiΕ™Γ­ Ε pΓ‘c

Forked from express-status-monitor

About

πŸš€ Realtime Monitoring solution for koa.js, inspired by status.github.com

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.7%
  • HTML 22.3%