summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/nut
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-06-29 22:55:29 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-06-29 22:57:05 +0200
commit91fc6ce942be1da2026e7b8dcefda5cc86a8fdb3 (patch)
treeed3b75dd233b41d9981da641108b94c511c8e88d /roles/monitoring/prometheus/exporter/register/templates/nut
parentrevamp prometheus metric lables for ssl/probe (diff)
revamp prometheus metric lables for ipmi/remote and nut/ups
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/nut')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2
index 5181f4e4..6c549e1e 100644
--- a/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2
+++ b/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2
@@ -1,6 +1,7 @@
- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
labels:
instance: '{{ target.instance }}'
+ ups_instance: '{{ target.config.ups }}'
__param_ups: '{{ target.config.ups }}'
__param_server: '{{ target.config.server | default('127.0.0.1') }}'
{% if 'username' in target.config %}