diff options
Diffstat (limited to '')
| -rw-r--r-- | ansible/host_vars/lovelace/prometheus.yml | 5 | 
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  |