Collector (contrib), Prometheus, Loki, Tempo and Grafana with provisioning from git; SDK in API and worker with level 3 metrics, traces and logs carrying trace_id/span_id; telemetry off by default outside the stand; broker healthcheck runs as the broker user so a fresh stand starts once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
# Prometheus v3.15.1 — хранилище метрик (design change otel-telemetry,
|
|
# решения 3 и 15). Метрики приложения — scrape экспортёра prometheus
|
|
# Collector (honor_labels: job = service.name, instance = service.instance.id
|
|
# из OTLP), плюс собственные метрики Collector, Loki, Tempo и самого
|
|
# Prometheus: по ним видно, жив ли конвейер. Срок и предел объёма хранения,
|
|
# путь данных — флаги команды в docker-compose.yml. Приёмников remote write и
|
|
# OTLP, admin API и lifecycle нет; порт не публикуется.
|
|
global:
|
|
scrape_interval: 15s
|
|
scrape_timeout: 10s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
# метрики API и worker, пришедшие в Collector по OTLP
|
|
- job_name: otel-collector-exporter
|
|
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"]
|