diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-06-29 22:55:29 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-06-29 22:57:05 +0200 |
commit | 91fc6ce942be1da2026e7b8dcefda5cc86a8fdb3 (patch) | |
tree | ed3b75dd233b41d9981da641108b94c511c8e88d /roles/monitoring/prometheus/exporter/register/templates | |
parent | revamp 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')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 | 1 |
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 %} |