mirror of
https://github.com/natrontech/pbs-exporter.git
synced 2026-04-25 18:35:51 +03:00
[GH-ISSUE #139] Backup job metrics #15
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pbs-exporter#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fsackur on GitHub (Jul 23, 2025).
Original GitHub issue: https://github.com/natrontech/pbs-exporter/issues/139
I'm new to prometheus. Prom may not be the ideal choice to alert on backup jobs, but I have it already.
I am new to go, but I'd be willing to contribute a PR. I'm open to being talked out of the feature, if there's a better way to get what I need.
Is your feature request related to a problem? Please describe.
I want a gauge of age (or finish time) of last backup, and ideally also backup size.
Describe the solution you'd like
backup_last_finish_timegauge (timestamp in seconds)backup_agemetric (in seconds)vm/103. I suggest using{store}/{type}/{id}as label, e.g.backup_age{instance=backup03,backup=local_pool/vm/103}Describe any alternatives you've considered
Additional context
I've thrown something together in python - see
github.com/fsackur/pbs-sentient-exporter@fa52f21/pbs_sentient_exporter/pbs.pyThat is working for me right now. However, i think Go is a better choice and I would prefer to improve your project than create something that only I will use.