Apply completed lab 6 implementation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
HellsTomato
2026-10-31 01:46:08 +03:00
co-authored by Copilot
parent 470d9d6f1e
commit f2b4d77be4
50 changed files with 7983 additions and 15 deletions
+22
View File
@@ -0,0 +1,22 @@
# Prometheus — метрики: принимает OTLP от Collector (--web.enable-otlp-receiver) и сам опрашивает Collector.
global:
scrape_interval: 15s
evaluation_interval: 10s
# SLO burn-rate и alerts уровня 4.
rule_files:
- /etc/prometheus/alerts.yml
# Атрибуты ресурса, которые нужны как labels (реплика и окружение); остальное — в target_info.
otlp:
promote_resource_attributes: [service.instance.id, host.name, deployment.environment.name]
# OTLP приходит батчами с задержкой: допускаем отсчёты не по порядку в пределах 30 минут.
storage:
tsdb:
out_of_order_time_window: 30m
scrape_configs:
- job_name: otel-collector
static_configs:
- targets: ['otel-collector:8888']