Rework prometheus blackbox monitoring configuration

* Use scrape_config_files correctly
 * Do not separate prometheus and blackbox exporter nodes
 * Add a http_2xx_selfsigned module for self-signed certs
 * Monitor missing services
 * Switch from CRLF to LF in prometheus.config.j2
This commit is contained in:
2026-06-12 07:15:54 +00:00
parent daca460fdd
commit 43c7959d85
6 changed files with 68 additions and 92 deletions
+2 -12
View File
@@ -12,21 +12,11 @@
become: yes
roles:
- prometheus
- blackbox-exporter
vars:
blackbox: false
scrape_files:
- /etc/prometheus/scrape-main.yml
#- name: Install and configure Prometheus node - Blackbox nodes
# hosts: blackbox
# become: yes
# roles:
# - prometheus
# - blackbox-exporter
# vars:
# blackbox: true
# scrape_files:
# - /etc/prometheus/scrape-blackbox.yml
- /etc/prometheus/scrape-blackbox.yml
- name: Install and configure nodes
hosts: all