diff --git a/ansible/roles/monitoring/tasks/panel.yml b/ansible/roles/monitoring/tasks/panel.yml index 4ce254b..b498253 100644 --- a/ansible/roles/monitoring/tasks/panel.yml +++ b/ansible/roles/monitoring/tasks/panel.yml @@ -37,21 +37,6 @@ {{''}} {%- endfor -%} -# - name: Collect IP addresses from challenges (/etc/hosts) -# ansible.builtin.set_fact: -# hosts_content: >- -# {% for host in groups['static-challenges'] + groups['dynamic-challenges'] %} -# {{ hostvars[host]['ansible_eth1']['ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }} -# {% endfor %} - -# - name: Populate /etc/hosts with 'hosts_content' -# ansible.builtin.lineinfile: -# path: /etc/hosts -# line: "{{ item }}" -# state: present -# loop: "{{ hosts_content.splitlines() }}" -# become: true - - name: "Setup Prometheus configuration" ansible.builtin.template: src: prometheus.yml.j2 diff --git a/ansible/roles/monitoring/templates/prometheus.yml.j2 b/ansible/roles/monitoring/templates/prometheus.yml.j2 index b159bb2..a2e426e 100644 --- a/ansible/roles/monitoring/templates/prometheus.yml.j2 +++ b/ansible/roles/monitoring/templates/prometheus.yml.j2 @@ -9,10 +9,6 @@ scrape_configs: - job_name: "cadvisor" static_configs: - - targets: - - "35.180.196.232:8080" - labels: - instance: "containers-ctfd" - targets: - "cadvisor:8080" labels: