Files
mtusi2026lab7/infra/prometheus/prometheus.yml
T
HellsTomatoandCopilot 2ef0299e34
Skeleton contracts / contracts (pull_request) Canceled after 0s
Complete lab7 grade 4 implementation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-06 15:35:53 +03:00

23 lines
856 B
YAML

# 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']