feat: implement lab 6 observability and telemetry cost research

This commit is contained in:
2026-11-20 14:34:40 +03:00
parent 470d9d6f1e
commit 4f4e07a453
233 changed files with 79726 additions and 16 deletions
+36
View File
@@ -0,0 +1,36 @@
# Prometheus v3.15.1: хранилище метрик стенда. Метрики приложения сюда
# не пушатся — Prometheus сам забирает экспортёр Collector (:8889), куда
# SDK api, worker и relay отправляют OTLP. Срок (7d) и объём (1GB) хранения
# — флаги в compose.yaml; volume promdata.
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
# SLI и alert rules (уровень 4). Оповещения наружу не уходят: Alertmanager
# не подключён, состояние pending/firing видно в /api/v1/alerts и в Grafana
rule_files:
- /etc/prometheus/rules.yml
scrape_configs:
# метрики приложения: job и instance уже проставил Collector из ресурса
# (service.name, service.instance.id) — honor_labels их сохраняет
- job_name: messenger
honor_labels: true
static_configs:
- targets: ["otel-collector:8889"]
# здоровье самого конвейера телеметрии: очередь экспорта, отказы, память
- job_name: otel-collector
static_configs:
- targets: ["otel-collector:8888"]
- job_name: loki
static_configs:
- targets: ["loki:3100"]
- job_name: tempo
static_configs:
- targets: ["tempo:3200"]
- job_name: prometheus
static_configs:
- targets: ["127.0.0.1:9090"]