feat: add OpenTelemetry SDK, collector and telemetry stores
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>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Tempo 3.1.1 — хранилище трасс (design change otel-telemetry, решение 15).
|
||||
# Монолит (-target=all) с локальным хранилищем, без Kafka, metrics-generator и
|
||||
# MCP. Приём — OTLP/HTTP от Collector на :4318, запросы Grafana — :3200; оба
|
||||
# порта только в сети telemetry. Блоки и WAL — volume tempo_data
|
||||
# (/var/tempo), срок хранения блоков — 7 суток.
|
||||
stream_over_http_enabled: true
|
||||
|
||||
server:
|
||||
http_listen_port: 3200
|
||||
log_level: info
|
||||
|
||||
distributor:
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
|
||||
storage:
|
||||
trace:
|
||||
backend: local
|
||||
wal:
|
||||
path: /var/tempo/wal
|
||||
local:
|
||||
path: /var/tempo/blocks
|
||||
|
||||
# срок хранения блоков. В Tempo 3.x задания удаления ставит backend-scheduler
|
||||
# (retention provider), выполняет backend-worker; у обоих свой ключ
|
||||
# block_retention (по умолчанию 336h), поэтому оба — 7 суток
|
||||
backend_scheduler:
|
||||
provider:
|
||||
compaction:
|
||||
compaction:
|
||||
block_retention: 168h
|
||||
|
||||
backend_worker:
|
||||
compaction:
|
||||
block_retention: 168h
|
||||
|
||||
usage_report:
|
||||
reporting_enabled: false
|
||||
Reference in New Issue
Block a user