Files
mtusi2026lab6/infra/prometheus.yaml
T

16 lines
452 B
YAML

global:
scrape_interval: 10s
evaluation_interval: 10s
rule_files:
- /etc/prometheus/alert-rules.yml
scrape_configs:
# Метрики от OTel Collector (он в формате Prometheus на :8889).
- job_name: otel-collector
static_configs:
- targets: ['otel-collector:8889']
# Сам Prometheus — для наблюдения за собой.
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']