Files
mtusi2026lab6/infra/prometheus/prometheus.yml
T

21 lines
763 B
YAML

# Prometheus: хранилище метрик (retention 7 дней, volume promdata). Забирает метрики приложений через Collector
# (Prometheus-экспортёр :8889) и собственные метрики Collector (:8888): очереди экспортёров, отказы, drop из memory_limiter.
global:
scrape_interval: 5s
evaluation_interval: 5s
rule_files:
- /etc/prometheus/rules/*.yml
scrape_configs:
- job_name: otel-collector-app-metrics
honor_labels: true
static_configs:
- targets: ["otel-collector:8889"]
- job_name: otel-collector-internal
static_configs:
- targets: ["otel-collector:8888"]
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]