Files
mtusi2026lab6-fork/infra/prometheus/prometheus.yml
T

25 lines
1.1 KiB
YAML

# Prometheus v2.55.1 — хранилище МЕТРИК (TSDB на volume promdata, retention 7d)
# и вычислитель alert rules (состояние firing/resolved видно в /alerts и Grafana;
# доставка наружу не настроена — Alertmanager не нужен по заданию).
global:
scrape_interval: 10s
evaluation_interval: 10s
rule_files:
- /etc/prometheus/rules/*.yml
scrape_configs:
# Метрики приложения, которые Collector получил по OTLP. honor_labels: сохраняем
# job=<service.name> и instance=<service.instance.id>, выставленные exporter'ом.
- job_name: otel-collector-app
honor_labels: true
static_configs:
- targets: ["otel-collector:8889"]
# Собственные метрики Collector: принятые/отброшенные/неотправленные spans, logs, points.
- job_name: otel-collector-self
static_configs:
- targets: ["otel-collector:8888"]
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]