Remove blackbox for monitoring VM

This commit is contained in:
Vincent F. 2025-01-09 21:40:22 +01:00
parent ab2dd24814
commit f1d7128d12
3 changed files with 13 additions and 14 deletions

View File

@ -17,6 +17,6 @@ all:
dns: dns:
mosquitto: mosquitto:
monitoring: monitoring:
blackbox: # blackbox:
hosts: # hosts:
monitoring: # monitoring:

View File

@ -17,16 +17,16 @@
scrape_files: scrape_files:
- /etc/prometheus/scrape-main.yml - /etc/prometheus/scrape-main.yml
- name: Install and configure Prometheus node - Blackbox nodes #- name: Install and configure Prometheus node - Blackbox nodes
hosts: blackbox # hosts: blackbox
become: yes # become: yes
roles: # roles:
- prometheus # - prometheus
- blackbox-exporter # - blackbox-exporter
vars: # vars:
blackbox: true # blackbox: true
scrape_files: # scrape_files:
- /etc/prometheus/scrape-blackbox.yml # - /etc/prometheus/scrape-blackbox.yml
- name: Install and configure nodes - name: Install and configure nodes
hosts: all hosts: all

View File

@ -51,7 +51,6 @@ scrape_configs:
- target_label: __address__ - target_label: __address__
replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port. replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port.
{% else %} {% else %}
- job_name: "linux-nodes" - job_name: "linux-nodes"
static_configs: static_configs:
- targets: - targets: