r/programming • • 9d ago

Lightweight Spring Boot Monitoring Without Prometheus and Grafana

https://pvrlabs.xyz/articles/lightweight-spring-boot-monitoring.html
3 Upvotes

2 comments sorted by

1

u/robert_7524 6d ago

Does it include metric retention and alerting, or focus on live health checks?

1

u/fykup 6d ago

Yes, retention is included. StatLite stores metrics locally in SQLite with 90-day retention by default, configurable (including unlimited retention). You can explore historical trends directly in the dashboard.

Retention configuration: https://github.com/PVRLabs/statlite/blob/main/docs/configuration.md#retention

For alerting, there is a read-only API and automation recipes covering health failures, HTTP 5xx spikes, CPU, and memory thresholds.

Alerting isn't built into the dashboard itself - scheduling and notifications are handled externally through scripting. There is also a complete Telegram alerting example with failure and recovery notifications.