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

View file

@ -20,3 +20,13 @@
- name: Setup borg
ansible.builtin.import_tasks: borg.yml
tags: borg
- name: Get installed packages
ansible.builtin.package_facts:
manager: apt
tags: exporter
- name: Setup Prometheus exporter
ansible.builtin.import_tasks: exporter.yml
tags: exporter
when: "'prometheus-node-exporter' in ansible_facts.packages"