diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-09-22 01:25:59 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-09-22 01:25:59 +0200 |
commit | ad08b01391c404d4e0356467fc627d711ece8916 (patch) | |
tree | baf01ef1fef0108a9a18ff51c10873101fb9a0bf /roles/monitoring | |
parent | cosmetic changes (diff) |
prometheus: no more special jobs
Diffstat (limited to 'roles/monitoring')
-rw-r--r-- | roles/monitoring/prometheus/server/filter_plugins/prometheus.py | 2 |
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 ab865f93..056d216f 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_special_job_' + job.replace('-', '_') + special_config_varname = 'prometheus_job_' + job.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}) |