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:
+5
-1
@@ -1751,7 +1751,10 @@ def compose_env(profile: Profile) -> dict[str, str]:
|
||||
`cleaner` описан, но профили его не запускают. С брокером, relay и worker
|
||||
(design change `async-attachments`, решение 16; `pipeline-reliability`,
|
||||
решение 16) — пароль брокера и ключи пользователя worker: bootstrap S3
|
||||
заводит его и в профилях с S3. Реплики пароля брокера не получают.
|
||||
заводит его и в профилях с S3. Реплики пароля брокера не получают. С
|
||||
телеметрией (design change `otel-telemetry`, решение 20) — пароль
|
||||
администратора Grafana: сервисы телеметрии описаны, но ни один профиль их
|
||||
не запускает, а реплики и worker стенда — с выключенной телеметрией.
|
||||
"""
|
||||
env = {key: os.environ[key] for key in HOST_ENV if key in os.environ}
|
||||
return {
|
||||
@@ -1769,6 +1772,7 @@ def compose_env(profile: Profile) -> dict[str, str]:
|
||||
"S3_WORKER_ACCESS_KEY": secrets.token_hex(10),
|
||||
"S3_WORKER_SECRET_KEY": secrets.token_hex(20),
|
||||
"RABBITMQ_DEFAULT_PASS": secrets.token_urlsafe(24),
|
||||
"GRAFANA_ADMIN_PASSWORD": secrets.token_hex(16),
|
||||
"BENCH_APP_CPUS": profile.cpus,
|
||||
"BENCH_APP_MEMORY": profile.memory,
|
||||
"BENCH_DB_CPUS": profile.db_cpus,
|
||||
|
||||
Reference in New Issue
Block a user