Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backup references metrics. #88

Merged
merged 5 commits into from
Aug 13, 2024
Merged

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Aug 12, 2024

Added new metrics for backup reference list:

  • pgbackrest_backup_references
  • pgbackrest_backup_last_references

Added new flag --backrest.reference-count.

When the --backrest.reference-count flag is specified, information about the number of references to other backups (backup reference list) is collected.

The pgbackrest_backup_references metric can be a little annoying. This metric is hidden behind the flag.

However, the pgbackrest_backup_last_references metric is always collected for the latest backups.

New metrics:
- pgbackrest_backup_references
- pgbackrest_backup_last_references

New flag:
-backrest.reference-count

For no-last backups, the metric is collected only if the --backrest.reference-count flag is set.
For last backups, the metric is always collected.
@woblerr woblerr self-assigned this Aug 12, 2024
@woblerr woblerr merged commit ad666e8 into master Aug 13, 2024
6 checks passed
@woblerr woblerr deleted the add_backup_references_metric branch August 13, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant