diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-06-19 13:57:27 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-06-19 13:57:27 +0200 |
commit | ab97569f03c44e563237886fbcf2b81fb945f009 (patch) | |
tree | f71208d593d453924b9fee655448211ebe8dcb4b /roles/monitoring/prometheus/exporter/register/templates | |
parent | bind/zones: add DMARC policies (diff) |
prometheus: revamp labels for metrcis from blackbox exporter
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 | 2 |
1 files changed, 2 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 5f98e3a8..6319c1c5 100644 --- a/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 +++ b/roles/monitoring/prometheus/exporter/register/templates/blackbox/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 }}' + svc_kind: '{{ target.config.svc_kind }}' + svc_name: '{{ target.config.svc_name }}' __param_target: '{{ target.config.target }}' __param_module: '{{ target.config.module }}' {% if 'hostname' in target.config %} |