diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-02-07 00:26:47 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-02-07 00:26:47 +0100 |
commit | a4aaa50f35d6d58a0ccf3e089622a6bc4d023899 (patch) | |
tree | 31155e34bb80b8d4fae1b0a9eca00be0f9e6684f /roles/monitoring/prometheus/exporter/register/templates/nut | |
parent | prometheus targets: fix template generation (diff) |
prometheus targets: cleanup and add support for target specific labels
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/nut')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 | 3 |
1 files changed, 3 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 a25cdfe5..5181f4e4 100644 --- a/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 +++ b/roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 @@ -15,3 +15,6 @@ {% if 'statuses' in target.config %} __param_statuses: '{{ target.config.statuses }}' {% endif %} +{% for name, value in prometheus_target_labels.items() %} + {{ name }}: '{{ value }}' +{% endfor %} |