global: scrape_interval: 5s scrape_configs: - job_name: api metrics_path: /metrics static_configs: - targets: ['api1:8080','api2:8080'] - targets: ['collector:9464'] rule_files: - /etc/prometheus/prometheus-alerts.yml