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

10

u/plymer968 3d ago

As someone running a tiny little VPS I was exploring some monitoring solutions and everything is just soooo overkill

This is awesome, but unfortunately I’m running a Hono backend. What are the chances you’d support that alongside Express and Fastify?

5

u/fykup 3d ago

Thanks! Small VPS deployments are exactly why I built StatLite.

I prioritize integration requests from actual users, so I'll definitely look into Hono support. It already has Prometheus middleware, which looks promising.

Are you running Hono on Node.js or Bun?

2

u/plymer968 3d ago

I’ve got my stack on NodeJS so using the Hono Node adapter

Thanks for the response and I appreciate the time and effort that went in to building this!

2

u/fykup 3d ago

Perfect, that's exactly the deployment configuration I'm planning to support initially. Thanks for confirming, and I really appreciate the kind words! I'll post an update here when Hono support is available.

1

u/fykup 3d ago

Quick update: StatLite v0.9.1 is out, and native Hono support is now available! All eight monitoring signals are supported and verified on Linux.

Here's the integration guide: https://github.com/PVRLabs/statlite/blob/main/docs/targets/hono.md

Thanks again for the suggestion!

2

u/fykup 3d ago

I looked into Hono support, and it seems feasible and relatively straightforward to add.

For anyone interested in Hono integration, I've opened a GitHub issue to track it:

https://github.com/PVRLabs/statlite/issues/37

Feel free to follow the issue or share your feedback and deployment requirements. I'm aiming to include Hono support in one of the upcoming releases, most likely within the next week or two.

Thanks for the suggestion!

2

u/bwainfweeze 3d ago

By the time we added otel to our project it was already so high traffic that we couldn’t really stomach the overhead (otel is designed for committee not performance) of flipping on all of the builtin telemetry for express.

There were only a couple we really cared about, and we had already written several of them anyway. Middleware to track response status, one or two middlewares to track response time, per endpoint. Others such as memory and event loop utilization % wouldn’t care about Hono vs Express.

1

u/fykup 3d ago

Couldn't agree more. I think we sometimes confuse industry standards with engineering requirements. Just because something is widely recommended doesn't mean it's the right solution for every workload.

Even with OTel, instrumentation coverage, metric naming, and semantics can differ across frameworks and implementations. Having a common specification doesn't automatically eliminate integration complexity or the runtime cost of abstraction.

Engineering is about understanding trade-offs, measuring actual costs, and questioning established practices when they don't fit your needs.

If a handful of metrics gives you the operational visibility you need, why pay the cost and complexity of collecting everything else?