global: scrape_interval: 30s evaluation_interval: 30s rule_files: - /etc/prometheus/alerts.yml scrape_configs: # The ERP API — /metrics is exposed by prometheus-fastapi-instrumentator # (request rate, latency histogram, error counts). Reached over the # erp_shared network the main compose also joins. - job_name: erp-api metrics_path: /metrics static_configs: - targets: ["api:8000"] # Host-level metrics (CPU, RAM, disk, network). - job_name: node static_configs: - targets: ["node-exporter:9100"] # Per-container metrics (CPU, memory, restarts) for every container. - job_name: cadvisor static_configs: - targets: ["cadvisor:8080"] # App database metrics (connections, cache hit ratio, WAL, ...). - job_name: postgres static_configs: - targets: ["postgres-exporter:9187"] - job_name: prometheus static_configs: - targets: ["localhost:9090"]