summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2')
-rw-r--r--roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2
index 4e336873..47e6dceb 100644
--- a/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2
+++ b/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2
@@ -1,4 +1,4 @@
-- targets: [ '{{ hostvars[target.exporter_hostname].prometheus_scrape_endpoint }}' ]
+- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
labels:
instance: '{{ target.instance }}'
__param_target: '{{ target.config.target }}'