Hosting and deployment Lightweight Django monitoring without running Prometheus or Grafana
I've been building StatLite, an open-source monitoring dashboard for applications running on small servers and VPSs.
I just added native Django support using django-prometheus. Instead of running a separate Prometheus server, StatLite reads the metrics endpoint directly and stores the history in SQLite.
It tracks HTTP requests, errors, average latency (with a separate metrics listener), process CPU and restarts where available.
StatLite itself is a single Go binary using around 12 MiB of idle RAM.
There are two supported Django configurations: an inline metrics endpoint for basic HTTP monitoring, or a separate listener for latency monitoring as well.
- Django setup: https://github.com/PVRLabs/statlite/blob/main/docs/targets/django.md
- GitHub (MIT): https://github.com/PVRLabs/statlite
I'd be interested in feedback from people running Django on small VPSs.