summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-26 04:29:02 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-26 04:29:02 +0200
commit223297c29d78e4fe95e2ed2338455708e4e0a9c3 (patch)
tree02534f529becf59835dd1ed5dee0f2321966a09b /roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
parentswitch to pascal for pressure (diff)
parentfix alert wording (diff)
Merge branch 'topic/prometheus-refactoring'
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets/generic.yml.j2')
-rw-r--r--roles/monitoring/prometheus/server/templates/targets/generic.yml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
index e83b6bf4..6591362b 100644
--- a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
+++ b/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
@@ -1,3 +1,3 @@
-- targets: [ "{{ hostvars[target].prometheus_scrape_endpoint }}" ]
+- targets: [ '{{ hostvars[target.instance].prometheus_scrape_endpoint }}' ]
labels:
- instance: "{{ target }}"
+ instance: '{{ target.instance }}'