@@ -66,7 +66,7 @@ scrape_configs:
6666 regex: "^(__tmp_keep_me)$"
6767
6868 static_configs:
69- {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == project %}
69+ {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == prometheus_project %}
7070 - targets: ['{{ hostvars[item] ['ansible_' + hostvars[item] .nomad_iface] ['ipv4'] ['address'] }}:9100']
7171 labels:
7272 instance: "{{ item }}"
@@ -178,7 +178,7 @@ scrape_configs:
178178 tls_config:
179179 insecure_skip_verify: true
180180 static_configs:
181- {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == project %}
181+ {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == prometheus_project %}
182182 - targets: ['{{ hostvars[item] ['ansible_' + hostvars[item] .nomad_iface] ['ipv4'] ['address'] }}:9558']
183183 labels:
184184 instance: "{{ item }}"
@@ -194,7 +194,7 @@ scrape_configs:
194194 format: ['prometheus']
195195 metrics_path: /metrics
196196 static_configs:
197- {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == project %}
197+ {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == prometheus_project %}
198198 - targets: ['{{ hostvars[item] ['ansible_' + hostvars[item] .nomad_iface] ['ipv4'] ['address'] }}:9835']
199199 labels:
200200 instance: "{{ item }}"
@@ -214,7 +214,7 @@ scrape_configs:
214214 tls_config:
215215 insecure_skip_verify: true
216216 static_configs:
217- {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == project %}
217+ {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == prometheus_project %}
218218 - targets: ['{{ hostvars[item] ['ansible_' + hostvars[item] .nomad_iface] ['ipv4'] ['address'] }}:4646']
219219 labels:
220220 instance: "{{ item }}"
@@ -246,7 +246,7 @@ scrape_configs:
246246 tls_config:
247247 insecure_skip_verify: true
248248 static_configs:
249- {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == project %}
249+ {% for item in groups ['infrastructure' ] | default ([]) if item .split ('.' )[4] == prometheus_project %}
250250 - targets: ['{{ hostvars[item] ['ansible_' + hostvars[item] .nomad_iface] ['ipv4'] ['address'] }}:9080']
251251 labels:
252252 instance: "{{ item }}"
0 commit comments