global: scrape_interval: 60s evaluation_interval: 60s scrape_timeout: 10s sample_limit: 1000 # Limit samples per scrape to prevent overload # Rule files rule_files: - 'alerts.yml' alerting: alertmanagers: - static_configs: - targets: scrape_configs: # Prometheus itself - job_name: 'prometheus' sample_limit: 50000 static_configs: - targets: ['prometheus:9090'] # Container metrics via cAdvisor - job_name: 'cadvisor' sample_limit: 50000 static_configs: - targets: ['cadvisor:8080'] metrics_path: /metrics scheme: http # Host metrics via node-exporter - job_name: 'node-exporter' sample_limit: 50000 static_configs: - targets: ['node-exporter:9100'] # Loki metrics - job_name: 'loki' sample_limit: 50000 static_configs: - targets: ['loki:3100'] # Grafana metrics - job_name: 'grafana' sample_limit: 50000 static_configs: - targets: ['grafana:3000'] # Alloy metrics - job_name: 'alloy' sample_limit: 50000 static_configs: - targets: ['alloy:12345']