summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-26 03:32:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-26 03:32:47 +0200
commitcc89d6d4211aa5aec8e5bef8c854d4929c337887 (patch)
treecfad00b79ed9b475cf50ec85ea18fded07efb99e /roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2
parentmove away from exporter-exporter in favor for nginx (diff)
improved promethues multitarget support
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2')
-rw-r--r--roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2
index 6003cd46..c60077c7 100644
--- a/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2
+++ b/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2
@@ -1,4 +1,4 @@
-- targets: [ '{{ hostvars[target.config.exporter_hostname].prometheus_scrape_endpoint }}' ]
+- targets: [ '{{ hostvars[target.exporter_hostname].prometheus_scrape_endpoint }}' ]
labels:
instance: '{{ target.instance }}'
__param_ups: '{{ target.config.ups }}'