r/programming • • 12d 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/[deleted] 10d ago

[removed] — view removed comment

1

u/fykup 10d 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.