TypeScript

JavaScript Express Status Monitor

My Node.js server was eating memory and I didn't know why. No monitoring, no dashboards, no visibility into what was happening at the process level.

13 Oct 2023

JavaScript Express Status Monitor

My Node.js server was eating memory and I didn't know why. No monitoring, no dashboards, no visibility into what was happening at the process level.

Then I found express-status-monitor. One line of middleware and you get a real-time dashboard showing CPU usage, memory consumption, response times, and request counts.

Setup

Bash
npm install express-status-monitor --save

Add it as the first middleware in your Express app — before any other middleware or routers:

Typescript
app.use(require('express-status-monitor')());

Visit /status in your browser. That's it. You have a live dashboard.

What it shows you

  • CPU and memory usage over time
  • Response time distribution
  • Requests per second
  • Active connections

The trade-off

This is great for development and staging. You get instant visibility with zero configuration.

For production, it's not enough. There's no alerting, no persistence, no multi-instance aggregation. You'll want something like Prometheus + Grafana, Datadog, or New Relic for production monitoring.

But as a quick "is my server healthy?" tool during development, it's hard to beat for the effort required.