r/flask • • 22h ago

Show and Tell Lightweight monitoring for Flask apps without running Prometheus and Grafana

Post image
12 Upvotes

I've been building StatLite, an open-source, self-hosted application monitoring tool for small servers and VPS instances.

I recently added native Flask support using the existing prometheus-flask-exporter library. If you already expose compatible Prometheus metrics, you can use them directly without deploying a separate Prometheus server or Grafana.

StatLite provides:

  • HTTP request rates, 404s, 4xx and 5xx errors
  • Average response latency
  • Process CPU usage and restart detection
  • Automatic detection of elevated server error rates
  • Historical charts and optional Telegram alerts

It's a single Go binary with SQLite storage, using around 12-15 MiB of RAM at idle. Everything stays on your server, with no external telemetry collection.

The current Flask integration supports single-process deployments.

Flask integration guide:
https://github.com/PVRLabs/statlite/blob/main/docs/targets/flask.md

Live interactive demo:
https://pvrlabs.xyz/statlite/demo.html

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

I'm curious what other Flask developers use for monitoring, especially when running smaller applications on a VPS.

Would something like this be useful for your deployments?