From f1d7128d12ad9cae85fee2f35ce721e63a6dfd40 Mon Sep 17 00:00:00 2001 From: Vincent Finance Date: Thu, 9 Jan 2025 21:40:22 +0100 Subject: [PATCH] Remove blackbox for monitoring VM --- ansible/inventory | 6 +++--- ansible/playbooks/monitoring.yml | 20 +++++++++---------- .../prometheus/templates/prometheus.config.j2 | 1 - 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ansible/inventory b/ansible/inventory index e6d50c0..95b3428 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -17,6 +17,6 @@ all: dns: mosquitto: monitoring: - blackbox: - hosts: - monitoring: \ No newline at end of file +# blackbox: +# hosts: +# monitoring: \ No newline at end of file diff --git a/ansible/playbooks/monitoring.yml b/ansible/playbooks/monitoring.yml index 867782b..ae873c1 100644 --- a/ansible/playbooks/monitoring.yml +++ b/ansible/playbooks/monitoring.yml @@ -17,16 +17,16 @@ 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 +#- 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 - name: Install and configure nodes hosts: all diff --git a/ansible/roles/prometheus/templates/prometheus.config.j2 b/ansible/roles/prometheus/templates/prometheus.config.j2 index 14e4b2b..f184cbf 100644 --- a/ansible/roles/prometheus/templates/prometheus.config.j2 +++ b/ansible/roles/prometheus/templates/prometheus.config.j2 @@ -51,7 +51,6 @@ scrape_configs: - target_label: __address__ replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port. {% else %} - - job_name: "linux-nodes" static_configs: - targets: