Cleanup Prometheus alerts #45

Merged
jeltz merged 11 commits from prometheus_alerts into master 2021-04-01 19:24:26 +02:00
3 changed files with 6 additions and 10 deletions
Showing only changes of commit a743ce09fb - Show all commits

View file

@ -10,19 +10,15 @@
- name: Configure Prometheus - name: Configure Prometheus
template: template:
src: prometheus/prometheus.yml.j2 src: "{{ item }}.j2"
dest: /etc/prometheus/prometheus.yml
mode: 0644
notify: Restart Prometheus
- name: Configure Prometheus alert rules
template:
src: "prometheus/{{ item }}.j2"
dest: "/etc/prometheus/{{ item }}" dest: "/etc/prometheus/{{ item }}"
mode: 0644 owner: root
notify: Restart Prometheus group: root
mode: u=r,g=r,o=
loop: loop:
- prometheus.yml
- alert.rules.yml - alert.rules.yml
notify: Restart Prometheus
# We don't need to restart Prometheus when updating nodes # We don't need to restart Prometheus when updating nodes
- name: Configure Prometheus Federate devices - name: Configure Prometheus Federate devices