Add some prometheus alerts

This commit is contained in:
Jake Howard
2023-02-19 18:31:52 +00:00
parent 6282c13db6
commit 11eb833f44
4 changed files with 19 additions and 0 deletions

View File

@ -42,3 +42,12 @@
owner: "{{ docker_user.name }}"
notify: restart prometheus
become: true
- name: Install prometheus alert rules
copy:
src: files/prometheus/alert-rules.d/
dest: /opt/prometheus/alert-rules.d/
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: reload prometheus
become: true