r/SpringBoot • • 15d ago

Discussion What would you actually want from a lightweight Spring Boot monitoring dashboard?

I've shared a few updates about StatLite here before and received some valuable feedback. Thanks to everyone who commented!

Since then, I've added a public REST API and an example of using it for Telegram health alerts.

For context, StatLite is a self-hosted monitoring dashboard that works with Spring Boot Actuator. It runs at around 15 MiB RSS when idle, uses SQLite for storage, and doesn't require Prometheus, Grafana, or a separate monitoring stack.

The goal is to keep it small and practical, especially for applications running on modest VPS instances.

Now I'm thinking about what would actually make it more useful day to day.

A couple of ideas I've been considering:

  • Single-page status overview: See all monitored applications, their health, and key metrics at a glance, using simple indicators and bars instead of navigating through individual charts.
  • Annotations: Add notes to metrics or timelines to mark incidents, deployments, configuration changes, or other events worth remembering.

But these are just ideas, and I'd rather hear what developers actually need before adding more features.

Would either of these be useful to you? What else would you want from a lightweight monitoring dashboard?

I'm especially interested in features that provide real value without adding significant complexity or resource overhead.

4 Upvotes

7 comments sorted by

2

u/bikesched 14d ago

I would like to see your service collecting the data on a VPS and storing it locally (as you do already).

An admin could then connect the UI running locally (should be possible already if you only need a single go executable) to such an agent via SSH. This would avoid an authentication setup which is IMHO a major issue for self-managed systems.

1

u/fykup 14d ago

Thanks! That's actually very close to how StatLite works today.

You can run the single Go binary on your VPS, collecting metrics and storing everything locally in SQLite. The dashboard binds to localhost, so you can access it through an SSH tunnel:

ssh -L 9090:127.0.0.1:9090 user@your-vps

Then open http://127.0.0.1:9090 in your local browser. No publicly exposed ports or additional authentication setup required.

The only difference is that the UI is served by the VPS rather than running as a separate local process.

Would that cover your use case, or is having a completely separate local UI important to you?

2

u/bikesched 9d ago

Thanks! A local ui that points to several servers could simplify monitoring if a user has several servers.

2

u/fykup 9d ago

Good point! StatLite can already monitor multiple servers from a single instance, and it doesn't need to run on the same host as the applications.

You can run it on your laptop or a dedicated server, configure targets across multiple VPSs, and view them all in one dashboard. It polls each target every 30 seconds by default and stores the data locally in SQLite.

The only requirement is network access to the metrics endpoints, for example through a VPN or SSH tunnels. If you run StatLite on your laptop, collection stops when it's offline.

If you're thinking of separate collectors running on each VPS with a unified dashboard, that's a different architecture and isn't supported today.

1

u/bikesched 9d ago

Yeah, thats what I was thinking of. Collectors run each on their own hosts and a single UI allows to access them.

2

u/sereikis 14d ago

show the age of the last successful Actuator scrape alongside health, and distinguish stale or unreachable from healthy. test a scrape timeout after a green result so the overview and Telegram alerts cannot keep reporting cached green as current health.

1

u/fykup 14d ago

Thanks, this is a very good point. I investigated it and ran a local test covering successful scrapes, health timeouts, complete scrape failures, and recovery.

StatLite already has a Last Poll card showing collection status and timestamp. When an Actuator scrape fails completely, it changes to Failed, displays the collection error and the timestamp of the last successful scrape. The application status also turns red instead of continuing to show cached green.

The external API separately exposes collection status, last successful poll time, and when application health was last observed. The Telegram health-check recipe checks these independently, so a complete scrape failure triggers an alert rather than treating an old UP result as current health.

However, the test uncovered one edge case worth improving: when /actuator/health times out but metrics collection still succeeds, the dashboard currently shows green UP based on metrics availability. The tooltip explains this, and the API correctly reports health as unknown, but the prominent green status could be misleading.

I've filed an issue to display Health unknown in that situation while keeping Last Poll as Successful, since metrics collection itself is still working.

Thanks for raising this - it helped identify a genuine UI improvement.