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 script for collecting borgmatic backup metrics #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

g00g1
Copy link

@g00g1 g00g1 commented Mar 14, 2023

This is a script for borgmatic, adds following metrics:

  • borgmatic_backup_success: whether a borgmatic operation succeeded
  • borgmatic_backup_duration_seconds: duration of a borgmatic operation
  • borgmatic_backup_latest_archive_files: number of files within latest backup archive
  • borgmatic_backup_latest_archive_original_size_bytes: original size of a latest backup archive
  • borgmatic_backup_latest_archive_compressed_size_bytes: compressed size of a latest backup archive
  • borgmatic_backup_latest_archive_deduplicated_size_bytes: deduplicated size of a latest backup archive

@dswarbrick
Copy link
Member

Thanks for your contribution.

We are trying to discourage the use of homegrown text exposition format rendering. Please use the official Prometheus Python client library (https://github.com/prometheus/client_python) instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants