global: scrape_interval: 15s evaluation_interval: 15s external_labels: cluster: mtusi-lab6 rule_files: - /etc/prometheus/rules/*.yml scrape_configs: - job_name: prometheus static_configs: - targets: ["localhost:9090"] - job_name: otel-collector static_configs: - targets: ["otel-collector:8888"] # API — обе реплики (хардкод имён контейнеров; в compose алиасы сервисов # не работают для обеих реплик одновременно через DNS SD) - job_name: api metrics_path: /metrics static_configs: - targets: - "mtusi2026lab6-api-1:8080" - "mtusi2026lab6-api-2:8080" labels: service: api - job_name: worker metrics_path: /metrics static_configs: - targets: ["worker:9100"] - job_name: relay metrics_path: /metrics static_configs: - targets: ["relay:9101"] - job_name: rabbitmq metrics_path: /metrics static_configs: - targets: ["broker:15692"]