Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Oct 26, 2024
1 parent cea8600 commit a091935
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
15 changes: 0 additions & 15 deletions ansible/roles/monitoring/tasks/panel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions ansible/roles/monitoring/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a091935

Please sign in to comment.