Skip to content

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 · 1 min read

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.

Ehsan Gazar helps software engineers take LLM and agent systems from demo to production. He writes about building LLM systems that hold up in production: evals, tracing, RAG, agent architecture and cost control. He teaches the Senior to Staff AI Engineer cohort on Maven, where engineers learn to design and defend these systems.

Go further
Live cohort on Maven

Forward Deployed AI Engineering: From Customer Problem to Production Value

A live Maven cohort for engineers: 10 live 90-minute sessions taking one AI engagement from customer problem to production, ending with eight artefacts and a working slice in your own repo.

January cohort starts Tue 12 Jan 2027, Tue & Thu 6:30pm London. Enrolling now, 20 seats, $1,800.

View the live cohort

Keep reading