summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-23 16:50:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-23 16:50:24 +0200
commitef4432c51bacb5b92c03a42cb1ea7f9d837ec8b6 (patch)
treeffd0fc43be052f9c4b6848f2c7bccd3e0b1aa71f /roles/monitoring/prometheus/server/templates/targets
parentmove exporter_exporter configuration into canonical config dir (diff)
use / as spereator for jobs formerly known as special
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 %}