Complete lab 7 security implementation

This commit is contained in:
2026-11-26 22:26:21 +03:00
parent 20afc2c790
commit df47ebd9f1
89 changed files with 9765 additions and 53 deletions
+43
View File
@@ -0,0 +1,43 @@
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"]