# Prometheus — хранилище метрик (TSDB на volume, retention 7d) и вычисление alerts. # Метрики приложения приходят OTLP → Collector → exporter prometheus (:8889): # honor_labels сохраняет job=service.name и instance=service.instance.id реплики. global: scrape_interval: 5s evaluation_interval: 5s external_labels: deployment_environment: lab rule_files: - /etc/prometheus/rules/*.yml scrape_configs: - job_name: otel-collector-app honor_labels: true static_configs: - targets: ["otel-collector:8889"] - job_name: otel-collector static_configs: - targets: ["otel-collector:8888"] - job_name: rabbitmq metrics_path: /metrics/per-object # глубина очередей attachment.process / attachment.dead static_configs: - targets: ["rabbitmq:15692"] - job_name: loki static_configs: - targets: ["loki:3100"] - job_name: tempo static_configs: - targets: ["tempo:3200"] - job_name: prometheus static_configs: - targets: ["localhost:9090"]