aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-18 00:54:12 +0100
committerGravatar Joe Banks <[email protected]>2024-07-19 20:39:08 +0100
commit80bb1217dd6e373640662fc10d6ec2c67b0dd757 (patch)
tree73e5264a468191e1f770a8f994d74cb3df5050a3
parentSeparate install stage for Emacs in common role (diff)
Only template node exporter for Ansible hosts
-rw-r--r--ansible/host_vars/lovelace/prometheus.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/ansible/host_vars/lovelace/prometheus.yml b/ansible/host_vars/lovelace/prometheus.yml
index b9e0d58..ddda968 100644
--- a/ansible/host_vars/lovelace/prometheus.yml
+++ b/ansible/host_vars/lovelace/prometheus.yml
@@ -1,5 +1,4 @@
---
-
prometheus_cmdline_options: >-
--config.file=/etc/prometheus/prometheus.yml
--web.page-title='Python Discord Helper Monitoring And Supervision Service'
@@ -44,8 +43,8 @@ prometheus_configuration: |
# Scrape node exporters on all hosts
static_configs:
- targets:
- {%- for host in hostvars.values() %}
- - {{ host['ansible_wg0']['ipv4']['address'] }}:9100
+ {%- for host in groups['netcup'] %}
+ - {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}:9100
{%- endfor %}
- job_name: postgres