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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user