diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-12-03 05:23:28 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-12-03 05:23:28 +0100 |
commit | 73d220d72d491fff4e8f9206491af6bb2ca5a056 (patch) | |
tree | f1ff9517d69d1182c01309a385aa2a7bc0f999c2 /roles/monitoring/prometheus/exporter/register/templates/blackbox | |
parent | fixup! ch-http-proxy: acutally enable the nftables role for this host (diff) |
add whawty-nginx-sso to prometheus monitoring
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/blackbox')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 index 3ecf129a..5f98e3a8 100644 --- a/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 +++ b/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 @@ -3,6 +3,9 @@ instance: '{{ target.instance }}' __param_target: '{{ target.config.target }}' __param_module: '{{ target.config.module }}' +{% if 'hostname' in target.config %} + __param_hostname: '{{ target.config.hostname }}' +{% endif %} {% for name, value in prometheus_target_labels.items() %} {{ name }}: '{{ value }}' {% endfor %} |