Description
express-status-monitor is a self-hosted real-time monitoring module for Node.js and Express.js apps. It is inspired by status.github.com and built on Socket.io and Chart.js, so it can report server metrics live in a browser page at /status. You install it with npm, add a single line before your other middleware and visit the status page while the server runs. It needs Node.js newer than version 4. The monitor can be configured by passing an options object, and it accepts health checks: endpoints that appear beneath the other stats, which count as successful when they return a 200 status. The HTML page can be secured by mounting it behind an authentication handler, with examples using connect-ensure-login and http-auth. If your project already uses Socket.io, the module can break it because it starts its own Socket.io instance, so you should pass in your main instance and port. The project has examples, tests and coverage commands, supports Koa and hapi.js through separate packages, and is released under the MIT license.…
Highlights
- Realtime server metrics page at /status
- Built on Socket.io and Chart.js
- Health checks with status code 200
- Authentication for the status page
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Express Status Monitor.
People also visit
Statuspage
A simple, zero-dependency, pure js/html status page based on GitHub Pages and…
Express Status Monitor FAQ
What is express-status-monitor?
A self-hosted module that shows realtime server metrics for Express apps on a status page.
How do I install it?
Run npm install express-status-monitor, add the middleware before other middleware, and visit /status.
Does it work with Socket.io?
Only with care. By default it starts its own Socket.io instance, so pass your main instance and port in the options.
Can I add health checks?
Yes. Add endpoints to the configuration and they appear beneath the other stats. A 200 response counts as success.
How do I protect the status page?
Mount the page handler behind an authentication middleware. The README shows examples with connect-ensure-login and http-auth.
Does it support other frameworks?
Yes, through separate packages for Koa and hapi.js, according to the README.
What are the best Express Status Monitor alternatives?
Popular alternatives to Express Status Monitor include Gatus, Promster and EasyMonitor. See all Express Status Monitor alternatives
