summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-06-28 23:59:11 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-06-28 23:59:11 +0200
commit992b7262ea1d8e8cf7c6d0e3afaa33427ea0ca4a (patch)
treea9e4d0dd7436a9aaa282734803cdbc500036fff6 /roles/monitoring/prometheus/exporter/register/templates
parentrevamp prometheus metric lables for whawty-nginx-sso (diff)
revamp prometheus metric lables for ssl/probe
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j22
1 files changed, 2 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 3ecf129a..6d26e779 100644
--- a/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
+++ b/roles/monitoring/prometheus/exporter/register/templates/ssl/probe.yml.j2
@@ -1,6 +1,8 @@
- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
labels:
instance: '{{ target.instance }}'
+ sslcert_kind: '{{ target.config.module }}'
+ sslcert_instance: '{{ target.config.sslcert_instance }}'
__param_target: '{{ target.config.target }}'
__param_module: '{{ target.config.module }}'
{% for name, value in prometheus_target_labels.items() %}