summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/filter_plugins/prometheus.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/prometheus/server/filter_plugins/prometheus.py')
-rw-r--r--roles/monitoring/prometheus/server/filter_plugins/prometheus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/server/filter_plugins/prometheus.py b/roles/monitoring/prometheus/server/filter_plugins/prometheus.py
index 056d216f..1443e837 100644
--- a/roles/monitoring/prometheus/server/filter_plugins/prometheus.py
+++ b/roles/monitoring/prometheus/server/filter_plugins/prometheus.py
@@ -11,7 +11,7 @@ def prometheus_job_targets(hostvars, jobs, targets):
result = []
for job in jobs:
for target in targets:
- special_config_varname = 'prometheus_job_' + job.replace('-', '_')
+ special_config_varname = 'prometheus_job_' + job.replace('-', '_').replace('/', '__')
if special_config_varname in hostvars[target]:
for config in hostvars[target][special_config_varname]:
result.append({'job': job, 'instance': config['instance'], 'config': config, 'enabled': True})