Files
ansible-lol/ansible/playbooks/monitoring.yml
T
mirsal 43c7959d85 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
2026-06-12 07:27:30 +00:00

26 lines
495 B
YAML

---
# Playbook to set up monitoring modules
- name: Install and configure the control node
hosts: monitoring
become: yes
roles:
- grafana
- name: Install and configure Prometheus node - Main node
hosts: monitoring
become: yes
roles:
- prometheus
- blackbox-exporter
vars:
scrape_files:
- /etc/prometheus/scrape-main.yml
- /etc/prometheus/scrape-blackbox.yml
- name: Install and configure nodes
hosts: all
become: yes
roles:
- node-exporter