diff options
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets')
-rw-r--r-- | roles/monitoring/prometheus/server/templates/targets/blackbox/https.yml.j2 (renamed from roles/monitoring/prometheus/server/templates/targets/blackbox-https.yml.j2) | 2 | ||||
-rw-r--r-- | roles/monitoring/prometheus/server/templates/targets/blackbox/ping.yml.j2 (renamed from roles/monitoring/prometheus/server/templates/targets/blackbox-ping.yml.j2) | 2 | ||||
-rw-r--r-- | roles/monitoring/prometheus/server/templates/targets/blackbox/ssh.yml.j2 (renamed from roles/monitoring/prometheus/server/templates/targets/blackbox-ssh.yml.j2) | 2 | ||||
-rw-r--r-- | roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 (renamed from roles/monitoring/prometheus/server/templates/targets/nut-ups.yml.j2) | 12 |
4 files changed, 9 insertions, 9 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/blackbox-https.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/blackbox/https.yml.j2 index b1a33df3..29c89590 100644 --- a/roles/monitoring/prometheus/server/templates/targets/blackbox-https.yml.j2 +++ b/roles/monitoring/prometheus/server/templates/targets/blackbox/https.yml.j2 @@ -1,4 +1,4 @@ - targets: [ '{{ hostvars[target.config.exporter_hostname].prometheus_scrape_endpoint }}' ] labels: instance: '{{ target.instance }}' - __param_target: {{ target.config.address }} + __param_target: '{{ target.config.address }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/blackbox-ping.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/blackbox/ping.yml.j2 index b1a33df3..29c89590 100644 --- a/roles/monitoring/prometheus/server/templates/targets/blackbox-ping.yml.j2 +++ b/roles/monitoring/prometheus/server/templates/targets/blackbox/ping.yml.j2 @@ -1,4 +1,4 @@ - targets: [ '{{ hostvars[target.config.exporter_hostname].prometheus_scrape_endpoint }}' ] labels: instance: '{{ target.instance }}' - __param_target: {{ target.config.address }} + __param_target: '{{ target.config.address }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/blackbox-ssh.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/blackbox/ssh.yml.j2 index b1a33df3..29c89590 100644 --- a/roles/monitoring/prometheus/server/templates/targets/blackbox-ssh.yml.j2 +++ b/roles/monitoring/prometheus/server/templates/targets/blackbox/ssh.yml.j2 @@ -1,4 +1,4 @@ - targets: [ '{{ hostvars[target.config.exporter_hostname].prometheus_scrape_endpoint }}' ] labels: instance: '{{ target.instance }}' - __param_target: {{ target.config.address }} + __param_target: '{{ target.config.address }}' 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 d63d79a7..6003cd46 100644 --- a/roles/monitoring/prometheus/server/templates/targets/nut-ups.yml.j2 +++ b/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 @@ -1,17 +1,17 @@ - targets: [ '{{ hostvars[target.config.exporter_hostname].prometheus_scrape_endpoint }}' ] labels: instance: '{{ target.instance }}' - __param_ups: {{ target.config.ups }} - __param_server: {{ target.config.server | default('127.0.0.1') }} + __param_ups: '{{ target.config.ups }}' + __param_server: '{{ target.config.server | default('127.0.0.1') }}' {% if 'username' in target.config %} - __param_username: {{ target.config.username }} + __param_username: '{{ target.config.username }}' {% endif %} {% if 'password' in target.config %} - __param_password: {{ target.config.password }} + __param_password: '{{ target.config.password }}' {% endif %} {% if 'variables' in target.config %} - __param_variables: {{ target.config.variables }} + __param_variables: '{{ target.config.variables }}' {% endif %} {% if 'statuses' in target.config %} - __param_statuses: {{ target.config.statuses }} + __param_statuses: '{{ target.config.statuses }}' {% endif %} |