diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-06-28 23:59:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-06-28 23:59:11 +0200 |
commit | 992b7262ea1d8e8cf7c6d0e3afaa33427ea0ca4a (patch) | |
tree | a9e4d0dd7436a9aaa282734803cdbc500036fff6 /roles/monitoring/prometheus/exporter/register/filter_plugins | |
parent | revamp prometheus metric lables for whawty-nginx-sso (diff) |
revamp prometheus metric lables for ssl/probe
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/filter_plugins')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/filter_plugins/prometheus.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/filter_plugins/prometheus.py b/roles/monitoring/prometheus/exporter/register/filter_plugins/prometheus.py index 57b69a13..473eb655 100644 --- a/roles/monitoring/prometheus/exporter/register/filter_plugins/prometheus.py +++ b/roles/monitoring/prometheus/exporter/register/filter_plugins/prometheus.py @@ -8,6 +8,7 @@ from ansible import errors _multitarget_id_map_ = { "blackbox/probe": (lambda vars, config: (vars['inventory_hostname'], "%s-%s" % (config['svc_kind'], config['svc_instance']))), + "ssl/probe": (lambda vars, config: (vars['inventory_hostname'], "%s-%s-%s" % (config['module'], config['sslcert_instance'], vars['inventory_hostname']))), "whawty-nginx-sso": (lambda vars, config: (vars['inventory_hostname'], "%s-%s" % (config['app_instance'], vars['inventory_hostname']))), } |