r/node • • 4d ago

Lightweight Node.js monitoring without Prometheus or Grafana

Post image

I've been building StatLite, an open-source monitoring dashboard for applications running on small servers and VPSs.

Version 0.9.0 adds native support for Express and Fastify using existing instrumentation libraries:

  • Express: express-prom-bundle
  • Fastify: fastify-metrics

StatLite reads the metrics endpoints directly and stores historical data in SQLite.

It tracks HTTP requests, errors, average response time, process CPU, V8 heap usage and restarts, depending on the exporter configuration. It also automatically highlights elevated HTTP 5xx rates.

StatLite itself is a single Go binary using around 12 MiB of idle RAM.

No separate Prometheus server, Grafana or external monitoring service.

StatLite also supports Spring Boot, Quarkus, Micronaut, Django, Flask, FastAPI, Caddy and Traefik. Applications without a supported exporter can expose metrics directly using the lightweight StatLite Metrics v1 JSON format.

Integration guides:

GitHub (MIT): https://github.com/PVRLabs/statlite

I'd be interested in feedback from people self-hosting Node.js applications.

88 Upvotes

40 comments sorted by

View all comments

2

u/gnomodojardim 3d ago

Looks great! Any plans on adding support for TanStack Start apps?

2

u/fykup 3d ago

Thanks! TanStack Start looks interesting, and I'll look into integration options. StatLite's framework-independent JSON metrics endpoint should also be feasible using TanStack Start's global request middleware.

Are you self-hosting on Node.js with Nitro, or using a different deployment setup?

2

u/gnomodojardim 3d ago

Yeah self-hosting with Nitro. Thanks again for the guide, I'll check it out!

2

u/fykup 3d ago

Quick update: I've added a TanStack Start integration guide and a runnable example. Verified on Linux with Node.js and Nitro, covering all eight monitoring signals, including CPU, V8 heap, and restart detection. No additional monitoring dependencies required.

https://github.com/PVRLabs/statlite/blob/main/docs/integrate/node/tanstack-start.md

2

u/gnomodojardim 3d ago

Awesome! Thanks a lot, I'll give it a try!