global: scrape_interval: 15s evaluation_interval: 15s rule_files: - /etc/prometheus/rules/*.yml scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] {% for job in prometheus_server_jobs %} - job_name: '{{ job }}' metrics_path: /proxy params: module: - {{ job }} file_sd_configs: - files: - "/etc/prometheus/jobs/{{ job }}/*.yml" {% endfor %}