Run borg-textcollector after each backup completes
Instead of gathering borg statistics every hour or so, run the text collector script only once after each borg-backup service finishes. Also split the borg text collector script into two similar scripts, where each one gathers borg statistics for its respective borg host.
Showing
- roles/prometheus_exporters/files/borg-offsite-textcollector.sh 39 additions, 0 deletions.../prometheus_exporters/files/borg-offsite-textcollector.sh
- roles/prometheus_exporters/files/borg-textcollector.sh 0 additions, 18 deletionsroles/prometheus_exporters/files/borg-textcollector.sh
- roles/prometheus_exporters/tasks/main.yml 11 additions, 8 deletionsroles/prometheus_exporters/tasks/main.yml
- roles/prometheus_exporters/templates/prometheus-borg-textcollector.service.j2 6 additions, 5 deletions...orters/templates/prometheus-borg-textcollector.service.j2
- roles/prometheus_exporters/templates/prometheus-borg-textcollector.timer.j2 0 additions, 10 deletions...xporters/templates/prometheus-borg-textcollector.timer.j2
Please register or sign in to comment