summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-02-07 00:26:47 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-02-07 00:26:47 +0100
commita4aaa50f35d6d58a0ccf3e089622a6bc4d023899 (patch)
tree31155e34bb80b8d4fae1b0a9eca00be0f9e6684f /roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
parentprometheus targets: fix template generation (diff)
prometheus targets: cleanup and add support for target specific labels
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
index 47e6dceb..3ecf129a 100644
--- a/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
+++ b/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
@@ -3,3 +3,6 @@
instance: '{{ target.instance }}'
__param_target: '{{ target.config.target }}'
__param_module: '{{ target.config.module }}'
+{% for name, value in prometheus_target_labels.items() %}
+ {{ name }}: '{{ value }}'
+{% endfor %}