Setup blackbox for some HTTP monitoring

This commit is contained in:
Jake Howard
2022-12-04 22:11:49 +00:00
parent e89f13b8a9
commit 75862dbaf9
6 changed files with 112 additions and 29 deletions

View File

@ -28,3 +28,12 @@
validate: docker-compose -f %s config
notify: restart prometheus
become: true
- name: Install blackbox config
template:
src: files/prometheus/blackbox.yml
dest: /opt/prometheus/blackbox.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: restart prometheus
become: true