ЛР6: OpenTelemetry, Collector, Prometheus/Loki/Tempo, Grafana, алерты, исследование цены наблюдаемости

This commit is contained in:
kolya5544
2026-10-03 05:10:45 +03:00
parent 470d9d6f1e
commit 1d908578e3
79 changed files with 10501 additions and 38 deletions
+20
View File
@@ -0,0 +1,20 @@
# 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"]