project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Feature] Display backup job status on public status page

Open cberr2024 opened this issue 7 months ago • 6 comments

Describe the feature The status page is working great for the general overview of the PBS clusters. It'd also be good to have an additional status page for backup job statuses.

Use Case Display backup health on IT monitoring screens

Alternatives considered There is a similar application called Pulse that apparently does this: https://github.com/rcourtman/pulse

How important is this for you? This and the cluster status pages are the only use for this system at the moment for us.

cberr2024 avatar Apr 14 '26 10:04 cberr2024

It'd also be good to be able to set a note/tag on the backup jobs to add clarify on the job. E.G the jobs are just being presented as PBS:vm/101 Without checking on the cluster, there is no way of knowing which server that is.

cberr2024 avatar Apr 14 '26 10:04 cberr2024

Thanks @cberr2024 — interesting direction. The status page infrastructure can technically carry a second feed like this. Rough mental shape:

  • Backup health as a per-job row (green/amber/red based on last N runs) pulled from PBS task log.
  • Optional tag/note field on the job itself so the row shows something more human-readable than PBS:vm/101.

Not committing to a timeline — we'll look into it for a future issue round. Handing to @MrMasterbay to sit on the status-page pile for now. Pulse is a nice reference, thanks for the pointer.

mkellermann97 avatar Apr 20 '26 11:04 mkellermann97

@mkellermann97 It'd be good to have a customisable backup health view. Perhaps, 2 status widgits. One for last run and another for the last 5-10 runs.
If the last run was successful then it'd reduce the urgency of reviewing why backups are failing occasionally.

Having the tag isn't essential initially as if a backup has failed then it needs to be checked regardless of which it is. More of a nice to have.

Thanks for working on this.

cberr2024 avatar Apr 20 '26 11:04 cberr2024

@mkellermann97 I can see that there is a backup status page at the bottom of the status page now. The problem is that I have to zoom out to 65% on the webpage to see everything all at once. It'd be more useful to have the backup status as a separate page.

cberr2024 avatar May 14 '26 09:05 cberr2024

Hey @cberr2024 — fair call, the bottom-of-page placement squeezes everything at default zoom. A dedicated route (something like /status/backups) makes sense for NOC-wall dashboards. Adding it to the backlog under the existing ticket — won't promise a slot since we're in a feature-freeze through June, but it's logged and prioritised together with the per-job tag idea from the original thread.

Sponsoring keeps the road forward open — opencollective.com/pegaprox.

— Marcus

mkellermann97 avatar May 14 '26 09:05 mkellermann97

This shipped in 0.9.10 — the status_page plugin (Settings → Plugins → Status Page → enable) now renders a per-PBS panel below the cluster cards: datastore usage, total backup-group count, count of stale groups (default cut-off 48h, configurable per page), failed verifications, datastore breakdown. Toggle is show_pbs_backups in the plugin config; pbs_stale_hours controls the staleness window (1–8760).

The hosted-status URL pattern is the same as your cluster status page — /status?key=<auth_key> — so monitoring screens that already poll the cluster overview will pick the backup section up without any auth-flow changes. PBS results come from each PBS server's datastore + groups endpoints (one call per store), so it scales without enumerating every snapshot.

Closing as shipped. opencollective.com/pegaprox keeps the status-page + PBS plumbing work moving.

— Marcus

mkellermann97 avatar May 30 '26 11:05 mkellermann97