diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-06-30 00:32:34 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-06-30 00:32:34 +0200 |
commit | 8ef71cb6c33a134c1565a034a39a85b0a0a6324f (patch) | |
tree | 11f660aa745ebed88e2deaa7eeb9ea6f12885da0 /roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2 | |
parent | bind/zones: add DMARC policies (diff) | |
parent | prometheus: incooporate multitarget labelding to elevate hosts as well (diff) |
Merge branch 'topic/promethues-multitarget-exporter-labels'
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/nut/ups.yml.j2')
-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 %} |