global: scrape_interval: 15s evaluation_interval: 15s # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - alertmanager:9093 # Load rules once and periodically evaluate them rule_files: - "rules/*.yml" # Scrape configurations scrape_configs: # System metrics change frequently, scrape more often - job_name: 'node-exporter' scrape_interval: 10s static_configs: - targets: ['node-exporter:11910'] # Container metrics are also volatile - job_name: 'cadvisor' scrape_interval: 10s static_configs: - targets: ['cadvisor:11080'] # Prometheus itself changes slowly, scrape less frequently - job_name: 'prometheus' scrape_interval: 30s static_configs: - targets: ['localhost:11090']