Send backup status via exporter to Prometheus

This commit is contained in:
phil 2023-12-02 09:18:19 +01:00
parent 2a6b2273a2
commit be1cf37ca3
6 changed files with 137 additions and 0 deletions

14
handlers/main.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: Restart exporter service
ansible.builtin.systemd:
name: prometheus-borg-exporter.service
daemon_reload: true
state: restarted
enabled: true
- name: Restart exporter timer
ansible.builtin.systemd:
name: prometheus-borg-exporter.timer
daemon_reload: true
state: restarted
enabled: true