Record clean-clone SLO experiments and finalize dashboard and checks

This commit is contained in:
2026-10-24 00:30:20 +03:00
parent cd109e8083
commit 32f3919ae6
24 changed files with 132367 additions and 13 deletions
+7 -5
View File
@@ -1,11 +1,13 @@
## ЛР6 — БВТ2301 — Парамонов — на 5
Парамонов Глеб, БВТ2301. Оценка5, трек2: SLO и обнаружение инцидентов.
Парамонов Глеб, БВТ2301. Целевая оценка5, трек2: SLO и обнаружение инцидентов.
Собственная база ЛР5 + явная OTel-инструментация API/dispatcher/worker, W3C context через durable job и broker, Collector, Prometheus/Loki/Tempo/Grafana. Provisioning17 panels, histogram percentiles, pool/queue/saturation, multi-window burn-rate alerts и runbook. Встроенная telemetry FastAPI отключена для исключения дублей и контроля редактирования полей.
Собственная база ЛР5 сохранена: две API-реплики, PG, private S3, durable outbox, broker и worker. Добавлены явная OTel-инструментация API/dispatcher/worker, W3C traceparent/tracestate через durable job и broker, Collector, Prometheus/Loki/Tempo/Grafana. Provisioning17 panels, histogram percentiles, DB pool/queue/saturation, multi-window burn-rate alerts и RUNBOOK.md.
Запуск: `python scripts/bootstrap.py`, `docker compose up -d --build --wait`; dev setup и команды в REPORT.md. Проверки: `scripts/verify_stack.py`, `scripts/verify_telemetry.py`, `scripts/incidents.py`. Доказательства и ограничения — REPORT.md и evidence/.
Проверки из чистого clone с новыми volumes/credentials: build/readiness, contract/OpenAPI,4renderer checks, public smoke/persistence/failover, commit-before-publish, worker crashes/retries/replay/version reorder и telemetry correlation — PASS. Upload trace15 spans,2consumer attempts, один SERVER span;15metrics,3datasourcesOK.
Первый полный прогон: бизнес/fault tests PASS; API burst5s без firing, sustained DB fault обнаружен55.049s; при остановке Loki/Tempo1517/1517 business writes. Collector queue не превысила32; потери telemetry явно учтены. Результаты окончательного чистого clone приложены в отчёте после проверки.
Финальный SLO эксперимент: burst5s без ложного firing; длительный DB fault обнаружен53.115s; QueueLag52.734s,ReadyBurn58.018s; очередь восстановлена5.768s. При остановке Loki/Tempo1420/1420 writes, p9530.904ms. Collector queue<=32, RSS<90MiB во время outage/recovery при cap256MiB. Потери2859span-records/946log-records после flush подтверждены accepted−sent и суммой enqueue failures/retry drops.
Источник истины бизнес-данных PG/S3 не зависит от telemetry; один учебный хост, короткие экспериментальные окна не заменяют production SLO. Исходные contracts/public tests не ослаблены. Секреты вне Git. Источники и использование OpenAI Codex раскрыты.
Запуск: python scripts/bootstrap.py; docker compose up -d --build --wait. Полные команды, ограничения и результаты: REPORT.md, RUNBOOK.md, evidence/clean-clone (JSON, stdout, PNG/SVG). Пилот сохранён отдельно для прозрачности изменений методики. Portable application CI job включён; удалённый CI не заявляется как пройденный.
Один учебный Docker-host, ускоренные экспериментальные окна и синтетический профиль не заменяют production SLO. Contracts/public tests не ослаблены. Секреты вне Git. Источники и использование OpenAI Codex раскрыты.
+25
View File
@@ -0,0 +1,25 @@
name: Application smoke
on: [push, pull_request]
permissions:
contents: read
jobs:
application:
# Run on an isolated disposable runner with Docker Compose v2, never a shared production host.
runs-on: ubuntu-latest
timeout-minutes: 30
env:
COMPOSE_PROJECT_NAME: mtusi-ci
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install -r requirements-dev.txt
- run: make check validate PYTHON=python
- run: python scripts/bootstrap.py
- run: docker compose config --quiet
- run: docker compose up -d --build --wait --wait-timeout 180
- run: make test PYTHON=python
- name: Stop this disposable test stack
if: always()
run: docker compose down --volumes --remove-orphans
+27
View File
@@ -98,9 +98,36 @@ API caps512MiB на реплику, worker768MiB и renderer subprocess640MiB/CP
Графики: [timeline.png](evidence/incidents/timeline.png). В первом прогоне sample intervals фактически около9s из-за создания HTTP-клиента на каждый PromQL; первичные timestamps сохранены. Финальный опрос переиспользует соединение. Также отключена встроенная инструментация FastAPI: первоначальная трасса содержала дублирующий SERVER span/operation spans; окончательный код использует только явные инструменты с проверкой одного SERVER span и исключением health. Поэтому два прогона не сравниваются как benchmark цены telemetry; повтор проверяет корректность исправленной конфигурации.
## Финальный чистый clone, 23 октября
Полные результаты находятся в [evidence/clean-clone](evidence/clean-clone/CHECKS.md). Новый clone, новые credentials и volumes; сборка и запуск без ручного импорта Grafana. Offline contract/OpenAPI, четыре renderer checks в Linux, весь public/business fault pipeline и telemetry checks — PASS. Failover:106 успешных записей,3 неудачные попытки, восстановление3.844s; подтверждённые данные сохранены. Проверены commit-before-publish, перезапуск broker, три точки падения worker, retries/replay и защита от устаревшей версии.
Upload trace содержит15 spans и2 consumer attempts, один SERVER span; сохранены W3C tracestate, request_id и parent-child связи через очередь. Все15 метрик доступны, запрещённые labels/значения секретов отсутствуют в проверенных сигналах. Grafana автоматически загрузила17 panels; все3 datasource health=OK. На визуальной проверке процентные оси ограничены0..1 (отображение0..100%), CPU выражен числом CPU seconds/wall second.
Перед baseline выполнено120s settling с проверкой отсутствия firing. Baseline45.278s:824/824 writes,18.199RPS; p50/p95/p99=10.115/27.321/73.338ms.
| Воздействие | Измеренный результат |
| --- | --- |
| Короткая блокировка БД5s | 16 ошибочных попыток из692,0 ложных API firing |
| Блокировка БД70s | 226 ошибочных попыток из328, APIAvailabilityBurn обнаружен через53.115s |
| Восстановление БД | 1269/1269 writes; первое наблюдение без firing через21.094s от начала recovery phase |
| Worker stopped | 8 принятых вложений; QueueLag через52.734s, AttachmentReadyBurn через58.018s;1486/1486 message writes |
| Worker restored | Все8 ready через5.768s после старта; в recovery QueueLag снят через10.553s, ReadyBurn через5.280s;1990/1990 writes |
| Loki+Tempo stopped80s | 1420/1420 writes,0 ошибок,17.691RPS; p50/p95/p99=10.240/30.904/87.924ms |
| Collector buffers | Max queue32/32 batches; RSS88.496MiB во время outage,89.414MiB в recovery, лимит256MiB |
| После восстановления telemetry | 825/825 writes; после остановки нагрузки и15s flush exporter queues=0 |
Времена detection отсчитываются от начала соответствующего observation phase, времена resolved — от начала recovery phase (после drain для worker). Интервал опроса около5.3s; это точность наблюдения, не миллисекундная гарантия. Сохранённый `db-error-trace.json` показывает ERROR в `db.session.authenticate`, что связывает API degradation с БД. [График](evidence/clean-clone/incidents/timeline.png) показывает фактические samples; серые интервалы — окна наблюдения, а не точная длительность короткой блокировки.
Учёт потерь после прекращения нагрузки: Collector accepted37942−sent35083=2859 span-records, accepted13047−sent12101=946 log-records. Это точно совпало с2646 enqueue failures+213 explicit retry drops для spans и877+69 для logs. Количество относится к записям Collector, не уникальным целым traces и не потерям до Collector. Непереданные данные не восстановились задним числом; API продолжал работать. `collector-drops.txt` и raw metrics сохранены. Гипотеза о подавлении короткого всплеска, обнаружении длительного сбоя и ограниченной деградации telemetry подтверждена в двух локальных прогонах; production guarantees из этого не следуют.
## Первичные материалы
- [OpenTelemetry Python exporters](https://opentelemetry.io/docs/languages/python/exporters/), [propagation](https://opentelemetry.io/docs/concepts/context-propagation/), [W3C Trace Context](https://www.w3.org/TR/trace-context/).
- [Collector configuration](https://opentelemetry.io/docs/collector/configuration/), [Loki OTLP](https://grafana.com/docs/loki/latest/send-data/otel/otel-collector-getting-started/).
- [Prometheus histograms](https://prometheus.io/docs/practices/histograms/), [Grafana provisioning](https://grafana.com/docs/grafana/latest/administration/provisioning/).
- Контракты и COURSE.md этого репозитория; собственная реализация ЛР1–5, фактические версии image/runtime и локальные evidence.
## Автоматическая проверка приложения
`.github/workflows/application.yml` добавляет отдельный job: проверка контрактов, bootstrap (когда нужен), сборка, ожидание readiness и public smoke. Он предназначен для изолированного одноразового Actions-compatible Linux runner с Docker Compose v2; secrets создаются внутри job, после проверки удаляются только его Compose volumes. На GitFlic/Gitea запуск зависит от настроек платформы и runner преподавателя. Успешный удалённый CI этим отчётом не заявляется: приведённые доказательства получены локально, включая чистый clone. Полные fault/load эксперименты воспроизводятся отдельными командами отчёта.
+14
View File
@@ -0,0 +1,14 @@
# Чистый clone, 23.10.2026
Исходный commit cd109e8, новые volumes и credentials, сборка через Compose. Бизнес-код src/ и alert rules совпадают с окончательной версией. Во время визуальной проверки исправлены только единицы/границы осей dashboard; после прогона перенесена установка passed=True в конец scripts/incidents.py, после проверки quiescent counters. Полный прогон успешно дошёл до финального print и сохранил quiescent_collector.
- docker compose up -d --build --wait: PASS.
- scripts/check_contract.py: PASS (offline).
- scripts/validate_openapi.py: PASS (OpenAPI3.1).
- scripts/verify_telemetry.py: PASS, telemetry.json.
- scripts/verify_stack.py: PASS, integration.json.
- scripts/incidents.py: PASS, incidents/timeline.json, stdout и requests.json.
- 4 checks/test_render.py: PASS в Linux-контейнере mtusi-messenger:lab6 с bind mount checks/, network none, read-only root, /tmp tmpfs, cap-drop ALL. Эти тесты требуют Linux resource; на Windows запускать их в контейнере.
- scripts/plot_incidents.py: PNG/SVG построены из timeline.json, PNG осмотрен.
Снимок Grafana сделан во время DB fault; процентная шкала0..100%, реальные данные. Данные всех тестов синтетические. Полные аппаратные ограничения и команды в REPORT.md.
+177
View File
@@ -0,0 +1,177 @@
{
"public_smoke": "PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.",
"commit_before_publish": {
"attachment_id": "656b6443-a3ec-4a7c-b0b0-e144e0c0725d",
"job_id": "dd04b829-761e-4653-b1bc-4c42716db522",
"killed_api": "60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88",
"broker_restarted": true,
"queued_message_accepted": true,
"original_and_variants_verified": true
},
"public_persistence": "Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.",
"public_failover": "Executing explicit failover hook; hook output suppressed to avoid leaking secrets.\n{\"observed_instances_before\": 2, \"successful_writes\": 106, \"failed_attempts\": 3, \"first_recovery_seconds\": 3.844}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
"terminal_duplicates": {
"deliveries": 3,
"effect_objects": 4,
"metadata_unchanged": true
},
"crashes": [
{
"point": "before_effect",
"seconds_to_ready": 77.516,
"attempts": 2,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "lease_expired",
"details": {
"attempt": 1,
"outcome": "queued"
}
},
{
"event": "claimed",
"details": {
"attempt": 2,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 2,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "before_effect",
"job_id": "36b0bc31-2dec-4bb9-9f9d-61e71094f593",
"exit_code": 71
},
"restart_count_before": 0,
"restart_count_after": 1
},
{
"point": "after_effect",
"seconds_to_ready": 76.922,
"attempts": 2,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "lease_expired",
"details": {
"attempt": 1,
"outcome": "queued"
}
},
{
"event": "claimed",
"details": {
"attempt": 2,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 2,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "after_effect",
"job_id": "7891f174-49ea-4e0d-a6d6-6a9b6c386fe0",
"exit_code": 72
},
"restart_count_before": 1,
"restart_count_after": 1
},
{
"point": "after_commit",
"seconds_to_ready": 13.844,
"attempts": 1,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 1,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "after_commit",
"job_id": "1ee88727-0e77-439f-bbb2-0dad92805e28",
"exit_code": 73
},
"restart_count_before": 1,
"restart_count_after": 1
}
],
"retries": [
{
"fault": "transient",
"injected": 2,
"terminal_status": "ready",
"error_code": null,
"attempts": 3,
"replay_ready": false
},
{
"fault": "permanent",
"injected": 1,
"terminal_status": "failed",
"error_code": "synthetic_permanent",
"attempts": 1,
"replay_ready": true
},
{
"fault": "transient",
"injected": 5,
"terminal_status": "failed",
"error_code": "retry_exhausted",
"attempts": 5,
"replay_ready": true
}
],
"version_reorder": {
"old_job_id": "d858dfd1-fe11-496e-870a-4fc399f29926",
"new_job_id": "42487a9d-8318-451a-a334-ded8670332e5",
"final_pipeline_version": 2,
"keys": [
"originals/b261e677-fe54-4cfd-915e-103904923e67/v2",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/crop",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/optimized",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/thumbnail"
],
"stale_delivery_did_not_change_result": true
},
"passed": true
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

+29
View File
@@ -0,0 +1,29 @@
Phase preflight_settle
Phase baseline
Phase db_burst_5s
Phase settle
Phase db_sustained_70s
Phase db_recovery
Phase worker_stopped
Phase worker_recovery
Phase telemetry_backends_stopped
Phase telemetry_recovery
{
"short_burst_false_firings": 0,
"api_detection_seconds": 53.11501622200012,
"queue_lag_detection_seconds": 52.73373055458069,
"ready_slo_detection_seconds": 58.017918825149536,
"db_error_trace_id": "fc53e0ddc447464eb6e1a0f021f944a0",
"backend_outage_business_requests": {
"total": 1420,
"success": 1420,
"errors": 0,
"successful_rps": 17.69112533191216,
"successful_latency_ms": {
"p50": 10.239601135253906,
"p95": 30.90381622314453,
"p99": 87.92424201965332
}
},
"passed": true
}
@@ -0,0 +1,8 @@
otel-collector-1 | 2026-10-23T10:30:35.226Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/tempo", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "error": "no more retries left: failed to make an HTTP request: Post \"http://tempo:4318/v1/traces\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 57}
otel-collector-1 | 2026-10-23T10:30:35.365Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/tempo", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "error": "no more retries left: failed to make an HTTP request: Post \"http://tempo:4318/v1/traces\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 51}
otel-collector-1 | 2026-10-23T10:30:36.268Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/loki", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "error": "no more retries left: failed to make an HTTP request: Post \"http://loki:3100/otlp/v1/logs\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 17}
otel-collector-1 | 2026-10-23T10:30:37.313Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/loki", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "error": "no more retries left: failed to make an HTTP request: Post \"http://loki:3100/otlp/v1/logs\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 16}
otel-collector-1 | 2026-10-23T10:31:01.568Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/loki", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "error": "no more retries left: failed to make an HTTP request: Post \"http://loki:3100/otlp/v1/logs\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 18}
otel-collector-1 | 2026-10-23T10:31:04.410Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/loki", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "error": "no more retries left: failed to make an HTTP request: Post \"http://loki:3100/otlp/v1/logs\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 18}
otel-collector-1 | 2026-10-23T10:31:05.179Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/tempo", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "error": "no more retries left: failed to make an HTTP request: Post \"http://tempo:4318/v1/traces\": context deadline exceeded", "dropped_items": 57}
otel-collector-1 | 2026-10-23T10:31:06.306Z error internal/queue_sender.go:49 Exporting failed. Dropping data. {"resource": {"service.instance.id": "a5becd47-89b9-4556-9751-55a9fd026135", "service.name": "otelcol-contrib", "service.version": "0.140.1"}, "otelcol.component.id": "otlphttp/tempo", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "error": "no more retries left: failed to make an HTTP request: Post \"http://tempo:4318/v1/traces\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "dropped_items": 48}
@@ -0,0 +1,113 @@
{
"batches": [
{
"resource": {
"attributes": [
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "e2c762ef23774eed867076d8a3544eed"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-api"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "/FPg3cRHRk624aDwIflEoA==",
"spanId": "JJ4h6GYGFv0=",
"parentSpanId": "H829O9D5RDo=",
"name": "POST /api/v1/chats/{chat_id}/messages",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1792751080431312878",
"endTimeUnixNano": "1792751081439586745",
"attributes": [
{
"key": "http.response.status_code",
"value": {
"intValue": "503"
}
},
{
"key": "http.request.method",
"value": {
"stringValue": "POST"
}
},
{
"key": "http.route",
"value": {
"stringValue": "/api/v1/chats/{chat_id}/messages"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
},
{
"traceId": "/FPg3cRHRk624aDwIflEoA==",
"spanId": "VYNl6nSXcyY=",
"parentSpanId": "JJ4h6GYGFv0=",
"name": "db.session.authenticate",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792751080432446547",
"endTimeUnixNano": "1792751081436455732",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
}
]
}
]
}
]
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 112 KiB

+177
View File
@@ -0,0 +1,177 @@
{
"public_smoke": "PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.",
"commit_before_publish": {
"attachment_id": "656b6443-a3ec-4a7c-b0b0-e144e0c0725d",
"job_id": "dd04b829-761e-4653-b1bc-4c42716db522",
"killed_api": "60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88",
"broker_restarted": true,
"queued_message_accepted": true,
"original_and_variants_verified": true
},
"public_persistence": "Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.",
"public_failover": "Executing explicit failover hook; hook output suppressed to avoid leaking secrets.\n{\"observed_instances_before\": 2, \"successful_writes\": 106, \"failed_attempts\": 3, \"first_recovery_seconds\": 3.844}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
"terminal_duplicates": {
"deliveries": 3,
"effect_objects": 4,
"metadata_unchanged": true
},
"crashes": [
{
"point": "before_effect",
"seconds_to_ready": 77.516,
"attempts": 2,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "lease_expired",
"details": {
"attempt": 1,
"outcome": "queued"
}
},
{
"event": "claimed",
"details": {
"attempt": 2,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 2,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "before_effect",
"job_id": "36b0bc31-2dec-4bb9-9f9d-61e71094f593",
"exit_code": 71
},
"restart_count_before": 0,
"restart_count_after": 1
},
{
"point": "after_effect",
"seconds_to_ready": 76.922,
"attempts": 2,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "lease_expired",
"details": {
"attempt": 1,
"outcome": "queued"
}
},
{
"event": "claimed",
"details": {
"attempt": 2,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 2,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "after_effect",
"job_id": "7891f174-49ea-4e0d-a6d6-6a9b6c386fe0",
"exit_code": 72
},
"restart_count_before": 1,
"restart_count_after": 1
},
{
"point": "after_commit",
"seconds_to_ready": 13.844,
"attempts": 1,
"effect_objects": 4,
"audit": [
{
"event": "claimed",
"details": {
"attempt": 1,
"version": 1
}
},
{
"event": "ready",
"details": {
"attempt": 1,
"version": 1
}
}
],
"crash_event": {
"event": "injected_crash",
"point": "after_commit",
"job_id": "1ee88727-0e77-439f-bbb2-0dad92805e28",
"exit_code": 73
},
"restart_count_before": 1,
"restart_count_after": 1
}
],
"retries": [
{
"fault": "transient",
"injected": 2,
"terminal_status": "ready",
"error_code": null,
"attempts": 3,
"replay_ready": false
},
{
"fault": "permanent",
"injected": 1,
"terminal_status": "failed",
"error_code": "synthetic_permanent",
"attempts": 1,
"replay_ready": true
},
{
"fault": "transient",
"injected": 5,
"terminal_status": "failed",
"error_code": "retry_exhausted",
"attempts": 5,
"replay_ready": true
}
],
"version_reorder": {
"old_job_id": "d858dfd1-fe11-496e-870a-4fc399f29926",
"new_job_id": "42487a9d-8318-451a-a334-ded8670332e5",
"final_pipeline_version": 2,
"keys": [
"originals/b261e677-fe54-4cfd-915e-103904923e67/v2",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/crop",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/optimized",
"variants/b261e677-fe54-4cfd-915e-103904923e67/v2/thumbnail"
],
"stale_delivery_did_not_change_result": true
},
"passed": true
}
File diff suppressed because it is too large Load Diff
+831
View File
@@ -0,0 +1,831 @@
{
"before": {
"ca9064d130e5abe97b032230678592793b204bd16a81828b5bf95707e89ee6fa": {
"service": "api",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 2439,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:26.902339746Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:30.951579861Z",
"End": "2026-10-23T10:12:31.909823742Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:36.911006304Z",
"End": "2026-10-23T10:12:37.607367267Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:42.608568473Z",
"End": "2026-10-23T10:12:44.034638305Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:49.035892403Z",
"End": "2026-10-23T10:12:49.808044092Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:54.808538784Z",
"End": "2026-10-23T10:12:55.446974314Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88": {
"service": "api",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 5129,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:27.569089669Z",
"FinishedAt": "2026-10-23T10:12:24.748926406Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:19.475537619Z",
"End": "2026-10-23T10:12:20.088533003Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:32.732585284Z",
"End": "2026-10-23T10:12:34.401259648Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1357, in do_open\n h.request(req.get_method(), req.selector, req.data, headers,\n File \"/usr/local/lib/python3.12/http/client.py\", line 1386, in request\n self._send_request(method, url, body, headers, encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1432, in _send_request\n self.endheaders(body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1381, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1141, in _send_output\n self.send(msg)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1085, in send\n self.connect()\n File \"/usr/local/lib/python3.12/http/client.py\", line 1051, in connect\n self.sock = self._create_connection(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/socket.py\", line 865, in create_connection\n raise exceptions[0]\n File \"/usr/local/lib/python3.12/socket.py\", line 850, in create_connection\n sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1386, in http_open\n return self.do_open(http.client.HTTPConnection, req)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1360, in do_open\n raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 111] Connection refused>\n"
},
{
"Start": "2026-10-23T10:12:39.401728602Z",
"End": "2026-10-23T10:12:40.021543802Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:45.022905628Z",
"End": "2026-10-23T10:12:46.467363675Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:51.468687972Z",
"End": "2026-10-23T10:12:53.294837985Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"26ce8dcc5f249776f0767ff5167d436db9317bc3b990bf0059a961f5f8d1b98a": {
"service": "db",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1374,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:07.526400298Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:47.371184037Z",
"End": "2026-10-23T10:12:47.442092001Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:12:49.44412139Z",
"End": "2026-10-23T10:12:49.555078857Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:12:51.556556088Z",
"End": "2026-10-23T10:12:51.645943342Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:12:53.650131209Z",
"End": "2026-10-23T10:12:53.728247185Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:12:55.729073301Z",
"End": "2026-10-23T10:12:55.791982077Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
}
]
}
}
},
"43acdde1f3ec7f9eb61ee4a7adccc8e5f08e5c48c85ed7a2db2975f51487fb17": {
"service": "cache",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1390,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:07.518556094Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:47.254081492Z",
"End": "2026-10-23T10:12:47.281380722Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:12:49.282370685Z",
"End": "2026-10-23T10:12:49.328205183Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:12:51.328679606Z",
"End": "2026-10-23T10:12:51.376585207Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:12:53.377961564Z",
"End": "2026-10-23T10:12:53.498172938Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:12:55.499058844Z",
"End": "2026-10-23T10:12:55.524871654Z",
"ExitCode": 0,
"Output": "PONG\n"
}
]
}
}
},
"6f7f41dc18c80fc3b1b834c399f332c29290cb79fb0d5ba5164535b92f9f8a15": {
"service": "lb",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 3074,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:44.635347387Z",
"FinishedAt": "0001-01-01T00:00:00Z"
}
},
"9655fec7d01773fd44d5e2c9ff8a56af5bbe6341d0743a4508c97a2850e0f77a": {
"service": "s3",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1400,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:07.550380037Z",
"FinishedAt": "0001-01-01T00:00:00Z"
}
},
"9104dd1ba8fe521870bb269093ffe7614be2a804fe4f727e6da9b03c508f1d2f": {
"service": "reconciler",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 2352,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:11:26.875959074Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:14.970541907Z",
"End": "2026-10-23T10:12:15.045060473Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:25.046437824Z",
"End": "2026-10-23T10:12:25.365009315Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:35.209957023Z",
"End": "2026-10-23T10:12:35.264611252Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:45.265112239Z",
"End": "2026-10-23T10:12:45.701052141Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:55.702689421Z",
"End": "2026-10-23T10:12:55.753364655Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"0f74d60e698fae56eb68b7dc65a46af109c74824d8c00142ef1df7005640a52a": {
"service": "broker",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 5040,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:26.389996262Z",
"FinishedAt": "2026-10-23T10:12:25.951018099Z"
}
},
"db2ad72e90a8828afa89c26959d2fca34dfb976295194b665f35bbd9f2fd8690": {
"service": "worker",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 5943,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:44.753810258Z",
"FinishedAt": "2026-10-23T10:12:19.875645366Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:11:32.112715664Z",
"End": "2026-10-23T10:11:33.484953902Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:11:43.488663659Z",
"End": "2026-10-23T10:11:43.562054394Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:06.309075507Z",
"End": "2026-10-23T10:12:06.436108558Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:16.436994403Z",
"End": "2026-10-23T10:12:16.490963762Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:49.956374846Z",
"End": "2026-10-23T10:12:50.103172605Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"f17aaacd02ae9a4c4e083230265218c18b57238305df8835f785719c8028aad5": {
"service": "dispatcher",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 5889,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:44.612157707Z",
"FinishedAt": "2026-10-23T10:12:21.96218313Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:11:44.811148417Z",
"End": "2026-10-23T10:11:44.969712212Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:11:54.970451962Z",
"End": "2026-10-23T10:11:55.453028411Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:05.295604122Z",
"End": "2026-10-23T10:12:05.338568791Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:15.339895505Z",
"End": "2026-10-23T10:12:15.553475604Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:49.7626623Z",
"End": "2026-10-23T10:12:49.892377099Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
}
},
"after": {
"ca9064d130e5abe97b032230678592793b204bd16a81828b5bf95707e89ee6fa": {
"service": "api",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 7432,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:06.455259742Z",
"FinishedAt": "2026-10-23T10:13:05.868350536Z",
"Health": {
"Status": "starting",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:49.035892403Z",
"End": "2026-10-23T10:12:49.808044092Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:54.808538784Z",
"End": "2026-10-23T10:12:55.446974314Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:00.447576135Z",
"End": "2026-10-23T10:13:03.043902121Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1357, in do_open\n h.request(req.get_method(), req.selector, req.data, headers,\n File \"/usr/local/lib/python3.12/http/client.py\", line 1386, in request\n self._send_request(method, url, body, headers, encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1432, in _send_request\n self.endheaders(body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1381, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1141, in _send_output\n self.send(msg)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1085, in send\n self.connect()\n File \"/usr/local/lib/python3.12/http/client.py\", line 1051, in connect\n self.sock = self._create_connection(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/socket.py\", line 865, in create_connection\n raise exceptions[0]\n File \"/usr/local/lib/python3.12/socket.py\", line 850, in create_connection\n sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1386, in http_open\n return self.do_open(http.client.HTTPConnection, req)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1360, in do_open\n raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 111] Connection refused>\n"
},
{
"Start": "2026-10-23T10:13:11.861804079Z",
"End": "2026-10-23T10:13:12.455102603Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 521, in open\n response = meth(req, response)\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 630, in http_response\n response = self.parent.error(\n ^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 559, in error\n return self._call_chain(*args)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 639, in http_error_default\n raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 503: Service Unavailable\n"
},
{
"Start": "2026-10-23T10:13:17.456546661Z",
"End": "2026-10-23T10:13:18.015678272Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 521, in open\n response = meth(req, response)\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 630, in http_response\n response = self.parent.error(\n ^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 559, in error\n return self._call_chain(*args)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 639, in http_error_default\n raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 503: Service Unavailable\n"
}
]
}
}
},
"60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88": {
"service": "api",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 7252,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:03.257918067Z",
"FinishedAt": "2026-10-23T10:13:02.76319722Z",
"Health": {
"Status": "starting",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:45.022905628Z",
"End": "2026-10-23T10:12:46.467363675Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:51.468687972Z",
"End": "2026-10-23T10:12:53.294837985Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:58.29524798Z",
"End": "2026-10-23T10:12:59.807688763Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1357, in do_open\n h.request(req.get_method(), req.selector, req.data, headers,\n File \"/usr/local/lib/python3.12/http/client.py\", line 1386, in request\n self._send_request(method, url, body, headers, encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1432, in _send_request\n self.endheaders(body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1381, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1141, in _send_output\n self.send(msg)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1085, in send\n self.connect()\n File \"/usr/local/lib/python3.12/http/client.py\", line 1051, in connect\n self.sock = self._create_connection(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/socket.py\", line 865, in create_connection\n raise exceptions[0]\n File \"/usr/local/lib/python3.12/socket.py\", line 850, in create_connection\n sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1386, in http_open\n return self.do_open(http.client.HTTPConnection, req)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1360, in do_open\n raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 111] Connection refused>\n"
},
{
"Start": "2026-10-23T10:13:08.671719362Z",
"End": "2026-10-23T10:13:10.398726956Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1357, in do_open\n h.request(req.get_method(), req.selector, req.data, headers,\n File \"/usr/local/lib/python3.12/http/client.py\", line 1386, in request\n self._send_request(method, url, body, headers, encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1432, in _send_request\n self.endheaders(body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1381, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1141, in _send_output\n self.send(msg)\n File \"/usr/local/lib/python3.12/http/client.py\", line 1085, in send\n self.connect()\n File \"/usr/local/lib/python3.12/http/client.py\", line 1051, in connect\n self.sock = self._create_connection(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/socket.py\", line 865, in create_connection\n raise exceptions[0]\n File \"/usr/local/lib/python3.12/socket.py\", line 850, in create_connection\n sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1386, in http_open\n return self.do_open(http.client.HTTPConnection, req)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 1360, in do_open\n raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 111] Connection refused>\n"
},
{
"Start": "2026-10-23T10:13:15.400214183Z",
"End": "2026-10-23T10:13:15.930398749Z",
"ExitCode": 1,
"Output": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 521, in open\n response = meth(req, response)\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 630, in http_response\n response = self.parent.error(\n ^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 559, in error\n return self._call_chain(*args)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/urllib/request.py\", line 639, in http_error_default\n raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 503: Service Unavailable\n"
}
]
}
}
},
"26ce8dcc5f249776f0767ff5167d436db9317bc3b990bf0059a961f5f8d1b98a": {
"service": "db",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6791,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:59.852639536Z",
"FinishedAt": "2026-10-23T10:12:58.955230771Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:13:11.423936982Z",
"End": "2026-10-23T10:13:11.537375618Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:13:13.538411807Z",
"End": "2026-10-23T10:13:13.584793084Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:13:15.586099065Z",
"End": "2026-10-23T10:13:15.633959838Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:13:17.634641765Z",
"End": "2026-10-23T10:13:17.682762378Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
},
{
"Start": "2026-10-23T10:13:19.683729582Z",
"End": "2026-10-23T10:13:19.886582534Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5432 - accepting connections\n"
}
]
}
}
},
"43acdde1f3ec7f9eb61ee4a7adccc8e5f08e5c48c85ed7a2db2975f51487fb17": {
"service": "cache",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6743,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:59.165906906Z",
"FinishedAt": "2026-10-23T10:12:58.543720769Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:13:10.591504507Z",
"End": "2026-10-23T10:13:10.627110391Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:13:12.6278284Z",
"End": "2026-10-23T10:13:12.651677512Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:13:14.652968662Z",
"End": "2026-10-23T10:13:14.675523755Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:13:16.676738175Z",
"End": "2026-10-23T10:13:16.694763924Z",
"ExitCode": 0,
"Output": "PONG\n"
},
{
"Start": "2026-10-23T10:13:18.696017002Z",
"End": "2026-10-23T10:13:18.73411023Z",
"ExitCode": 0,
"Output": "PONG\n"
}
]
}
}
},
"6f7f41dc18c80fc3b1b834c399f332c29290cb79fb0d5ba5164535b92f9f8a15": {
"service": "lb",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6955,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:00.315586687Z",
"FinishedAt": "2026-10-23T10:12:58.943353188Z"
}
},
"9655fec7d01773fd44d5e2c9ff8a56af5bbe6341d0743a4508c97a2850e0f77a": {
"service": "s3",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 7906,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:18.725003548Z",
"FinishedAt": "2026-10-23T10:13:18.3342521Z"
}
},
"9104dd1ba8fe521870bb269093ffe7614be2a804fe4f727e6da9b03c508f1d2f": {
"service": "reconciler",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 7075,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:00.479098227Z",
"FinishedAt": "2026-10-23T10:12:59.910980516Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:35.209957023Z",
"End": "2026-10-23T10:12:35.264611252Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:45.265112239Z",
"End": "2026-10-23T10:12:45.701052141Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:55.702689421Z",
"End": "2026-10-23T10:12:55.753364655Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:05.821975434Z",
"End": "2026-10-23T10:13:06.167220869Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:16.168523457Z",
"End": "2026-10-23T10:13:16.199289998Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"0f74d60e698fae56eb68b7dc65a46af109c74824d8c00142ef1df7005640a52a": {
"service": "broker",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6751,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:59.37251139Z",
"FinishedAt": "2026-10-23T10:12:58.662600054Z"
}
},
"db2ad72e90a8828afa89c26959d2fca34dfb976295194b665f35bbd9f2fd8690": {
"service": "worker",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6887,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:12:59.981614128Z",
"FinishedAt": "2026-10-23T10:12:59.070638979Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:06.309075507Z",
"End": "2026-10-23T10:12:06.436108558Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:16.436994403Z",
"End": "2026-10-23T10:12:16.490963762Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:49.956374846Z",
"End": "2026-10-23T10:12:50.103172605Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:05.523668678Z",
"End": "2026-10-23T10:13:05.900752814Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:15.902173777Z",
"End": "2026-10-23T10:13:15.942059552Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
},
"f17aaacd02ae9a4c4e083230265218c18b57238305df8835f785719c8028aad5": {
"service": "dispatcher",
"state": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6897,
"ExitCode": 0,
"Error": "",
"StartedAt": "2026-10-23T10:13:00.086422949Z",
"FinishedAt": "2026-10-23T10:12:59.032320496Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2026-10-23T10:12:05.295604122Z",
"End": "2026-10-23T10:12:05.338568791Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:15.339895505Z",
"End": "2026-10-23T10:12:15.553475604Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:12:49.7626623Z",
"End": "2026-10-23T10:12:49.892377099Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:05.62818526Z",
"End": "2026-10-23T10:13:06.122837264Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2026-10-23T10:13:16.124666007Z",
"End": "2026-10-23T10:13:16.164691003Z",
"ExitCode": 0,
"Output": ""
}
]
}
}
}
},
"volumes_removed": false
}
+11
View File
@@ -0,0 +1,11 @@
{
"target_instance": "d1d3a05bdf9940e4a01bce00d177fffb",
"stopped_container": "ca9064d130e5abe97b032230678592793b204bd16a81828b5bf95707e89ee6fa",
"before_containers": [
"ca9064d130e5abe97b032230678592793b204bd16a81828b5bf95707e89ee6fa",
"60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88"
],
"after_running_containers": [
"60da49569247a59369a40608c485ce4e966ffa558eb5b1b4ae4010f66ac12b88"
]
}
+67
View File
@@ -0,0 +1,67 @@
{
"trace": {
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55",
"request_id": "12042b9018f843c7bf5314239a72fb6f",
"attachment_id": "b1a6561d-546a-4991-9bc1-fe48edefaf2e",
"job_id": "09d215c5-6651-4088-b471-3af7c0f131e7",
"spans": 15,
"consumer_attempts": 2,
"names": [
"POST /api/v1/chats/{chat_id}/attachments",
"db.session.authenticate",
"attachment.durable_accept",
"s3.put",
"attachment.publish",
"attachment.consume",
"attachment.publish",
"attachment.consume",
"s3.put",
"s3.put",
"db.attachment.commit",
"s3.get",
"image.render",
"s3.put",
"s3.put"
],
"tracestate_preserved": true,
"staging_removed": true
},
"logs": {
"count": 5,
"outcomes": [
"ready",
"retry"
],
"request_id_correlated": true,
"secret_values_absent": true
},
"metrics": {
"present": [
"http_server_requests_total",
"http_server_duration_seconds_bucket",
"jobs_processed_total",
"job_processing_duration_seconds_bucket",
"attachment_time_to_ready_seconds_bucket",
"queue_depth",
"queue_oldest_age_seconds",
"db_pool_used",
"db_pool_waiting",
"worker_busy",
"worker_capacity",
"process_rss_bytes",
"process_cpu_time_seconds",
"attachment_slo_eligible",
"attachment_slo_bad"
],
"forbidden_labels_absent": true
},
"grafana": {
"provisioned_panels": 17,
"datasource_health": {
"loki": "OK",
"prometheus": "OK",
"tempo": "OK"
}
},
"passed": true
}
+67
View File
@@ -0,0 +1,67 @@
{
"trace": {
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55",
"request_id": "12042b9018f843c7bf5314239a72fb6f",
"attachment_id": "b1a6561d-546a-4991-9bc1-fe48edefaf2e",
"job_id": "09d215c5-6651-4088-b471-3af7c0f131e7",
"spans": 15,
"consumer_attempts": 2,
"names": [
"POST /api/v1/chats/{chat_id}/attachments",
"db.session.authenticate",
"attachment.durable_accept",
"s3.put",
"attachment.publish",
"attachment.consume",
"attachment.publish",
"attachment.consume",
"s3.put",
"s3.put",
"db.attachment.commit",
"s3.get",
"image.render",
"s3.put",
"s3.put"
],
"tracestate_preserved": true,
"staging_removed": true
},
"logs": {
"count": 5,
"outcomes": [
"ready",
"retry"
],
"request_id_correlated": true,
"secret_values_absent": true
},
"metrics": {
"present": [
"http_server_requests_total",
"http_server_duration_seconds_bucket",
"jobs_processed_total",
"job_processing_duration_seconds_bucket",
"attachment_time_to_ready_seconds_bucket",
"queue_depth",
"queue_oldest_age_seconds",
"db_pool_used",
"db_pool_waiting",
"worker_busy",
"worker_capacity",
"process_rss_bytes",
"process_cpu_time_seconds",
"attachment_slo_eligible",
"attachment_slo_bad"
],
"forbidden_labels_absent": true
},
"grafana": {
"provisioned_panels": 17,
"datasource_health": {
"loki": "OK",
"prometheus": "OK",
"tempo": "OK"
}
},
"passed": true
}
+317
View File
@@ -0,0 +1,317 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "http_request",
"flags": "1",
"scope_name": "messenger",
"service_instance_id": "7f4eb715d0ed421ab4f9565d88e9e8e1",
"service_name": "messenger-api",
"service_version": "lab6-v1",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "91f15d5109fbe302",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55"
},
"values": [
[
"1792750313712307040",
"{\"timestamp\": 1792750313.7120883, \"severity\": \"INFO\", \"service.name\": \"messenger-api\", \"event\": \"http_request\", \"trace_id\": \"0f2e792fad4e4b68a1143a6a6d5b8a55\", \"span_id\": \"91f15d5109fbe302\", \"request_id\": \"12042b9018f843c7bf5314239a72fb6f\", \"status\": 202, \"route\": \"/api/v1/chats/{chat_id}/attachments\", \"duration_seconds\": 0.378622}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job_finished",
"flags": "1",
"scope_name": "messenger",
"service_instance_id": "04e869835fad4f9084d43e06e14e76c9",
"service_name": "messenger-worker",
"service_version": "lab6-v1",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "469474913a1e1896",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55"
},
"values": [
[
"1792750323924920851",
"{\"timestamp\": 1792750323.9246864, \"severity\": \"INFO\", \"service.name\": \"messenger-worker\", \"event\": \"job_finished\", \"trace_id\": \"0f2e792fad4e4b68a1143a6a6d5b8a55\", \"span_id\": \"469474913a1e1896\", \"job_id\": \"09d215c5-6651-4088-b471-3af7c0f131e7\", \"attempt\": 1, \"outcome\": \"retry\", \"duration_seconds\": 0.23219}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job_finished",
"flags": "1",
"scope_name": "messenger",
"service_instance_id": "04e869835fad4f9084d43e06e14e76c9",
"service_name": "messenger-worker",
"service_version": "lab6-v1",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "7c1c05974b4a0e8f",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55"
},
"values": [
[
"1792750327804254113",
"{\"timestamp\": 1792750327.8040586, \"severity\": \"INFO\", \"service.name\": \"messenger-worker\", \"event\": \"job_finished\", \"trace_id\": \"0f2e792fad4e4b68a1143a6a6d5b8a55\", \"span_id\": \"7c1c05974b4a0e8f\", \"job_id\": \"09d215c5-6651-4088-b471-3af7c0f131e7\", \"attempt\": 2, \"outcome\": \"ready\", \"duration_seconds\": 1.296613}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job_published",
"flags": "1",
"scope_name": "messenger",
"service_instance_id": "cc7a9a75cd854a9f9c384d63b6c13b0e",
"service_name": "messenger-dispatcher",
"service_version": "lab6-v1",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "bc42898409f498b8",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55"
},
"values": [
[
"1792750314557549062",
"{\"timestamp\": 1792750314.5374866, \"severity\": \"INFO\", \"service.name\": \"messenger-dispatcher\", \"event\": \"job_published\", \"trace_id\": \"0f2e792fad4e4b68a1143a6a6d5b8a55\", \"span_id\": \"bc42898409f498b8\", \"job_id\": \"09d215c5-6651-4088-b471-3af7c0f131e7\", \"attempt\": 1}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job_published",
"flags": "1",
"scope_name": "messenger",
"service_instance_id": "cc7a9a75cd854a9f9c384d63b6c13b0e",
"service_name": "messenger-dispatcher",
"service_version": "lab6-v1",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "f4a325253301bb2c",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "0f2e792fad4e4b68a1143a6a6d5b8a55"
},
"values": [
[
"1792750326506989765",
"{\"timestamp\": 1792750326.5068665, \"severity\": \"INFO\", \"service.name\": \"messenger-dispatcher\", \"event\": \"job_published\", \"trace_id\": \"0f2e792fad4e4b68a1143a6a6d5b8a55\", \"span_id\": \"f4a325253301bb2c\", \"job_id\": \"09d215c5-6651-4088-b471-3af7c0f131e7\", \"attempt\": 2}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 31660,
"linesProcessedPerSecond": 77,
"totalBytesProcessed": 9746,
"totalLinesProcessed": 24,
"execTime": 0.30783,
"queueTime": 0.000397,
"subqueries": 0,
"totalEntriesReturned": 5,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 5,
"totalStructuredMetadataBytesProcessed": 2256
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"queryUsedV2Engine": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0,
"dataobj": {
"prePredicateDecompressedRows": 0,
"prePredicateDecompressedBytes": 0,
"prePredicateDecompressedStructuredMetadataBytes": 0,
"postPredicateRows": 0,
"postPredicateDecompressedBytes": 0,
"postPredicateStructuredMetadataBytes": 0,
"postFilterRows": 0,
"pagesScanned": 0,
"pagesDownloaded": 0,
"pagesDownloadedBytes": 0,
"pageBatches": 0,
"totalRowsAvailable": 0,
"totalPageDownloadTime": 0
}
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 4,
"totalBatches": 2,
"totalLinesSent": 5,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"queryUsedV2Engine": false,
"chunk": {
"headChunkBytes": 9746,
"headChunkLines": 24,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 5,
"headChunkStructuredMetadataBytes": 2256,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 1534708,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0,
"dataobj": {
"prePredicateDecompressedRows": 0,
"prePredicateDecompressedBytes": 0,
"prePredicateDecompressedStructuredMetadataBytes": 0,
"postPredicateRows": 0,
"postPredicateDecompressedBytes": 0,
"postPredicateStructuredMetadataBytes": 0,
"postFilterRows": 0,
"pagesScanned": 0,
"pagesDownloaded": 0,
"pagesDownloadedBytes": 0,
"pageBatches": 0,
"totalRowsAvailable": 0,
"totalPageDownloadTime": 0
}
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
+792
View File
@@ -0,0 +1,792 @@
{
"batches": [
{
"resource": {
"attributes": [
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "7f4eb715d0ed421ab4f9565d88e9e8e1"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-api"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "kfFdUQn74wI=",
"traceState": "research=mtusi",
"parentSpanId": "gujiHU5xRLE=",
"name": "POST /api/v1/chats/{chat_id}/attachments",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1792750313327773994",
"endTimeUnixNano": "1792750313712670374",
"attributes": [
{
"key": "http.response.status_code",
"value": {
"intValue": "202"
}
},
{
"key": "http.request.method",
"value": {
"stringValue": "POST"
}
},
{
"key": "http.route",
"value": {
"stringValue": "/api/v1/chats/{chat_id}/attachments"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "NbjNTH3s/lU=",
"traceState": "research=mtusi",
"parentSpanId": "kfFdUQn74wI=",
"name": "db.session.authenticate",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750313336125257",
"endTimeUnixNano": "1792750313376899038",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "Fl4Z8sCRWtM=",
"traceState": "research=mtusi",
"parentSpanId": "kfFdUQn74wI=",
"name": "attachment.durable_accept",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750313605181385",
"endTimeUnixNano": "1792750313703438816",
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "DQ3Ryaq6ZuI=",
"traceState": "research=mtusi",
"parentSpanId": "Fl4Z8sCRWtM=",
"name": "s3.put",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750313609845828",
"endTimeUnixNano": "1792750313665937718",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "PutObject"
}
}
],
"status": {}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "cc7a9a75cd854a9f9c384d63b6c13b0e"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-dispatcher"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "vEKJhAn0mLg=",
"traceState": "research=mtusi",
"parentSpanId": "Fl4Z8sCRWtM=",
"name": "attachment.publish",
"kind": "SPAN_KIND_PRODUCER",
"startTimeUnixNano": "1792750314097486991",
"endTimeUnixNano": "1792750314629683399",
"attributes": [
{
"key": "messaging.system",
"value": {
"stringValue": "redis"
}
},
{
"key": "messaging.destination.name",
"value": {
"stringValue": "attachment-jobs"
}
}
],
"status": {}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "04e869835fad4f9084d43e06e14e76c9"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-worker"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "RpR0kToeGJY=",
"traceState": "research=mtusi",
"parentSpanId": "vEKJhAn0mLg=",
"flags": 768,
"name": "attachment.consume",
"kind": "SPAN_KIND_CONSUMER",
"startTimeUnixNano": "1792750323692136516",
"endTimeUnixNano": "1792750323925423556",
"attributes": [
{
"key": "messaging.system",
"value": {
"stringValue": "redis"
}
},
{
"key": "messaging.destination.name",
"value": {
"stringValue": "attachment-jobs"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "cc7a9a75cd854a9f9c384d63b6c13b0e"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-dispatcher"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "9KMlJTMBuyw=",
"traceState": "research=mtusi",
"parentSpanId": "Fl4Z8sCRWtM=",
"flags": 768,
"name": "attachment.publish",
"kind": "SPAN_KIND_PRODUCER",
"startTimeUnixNano": "1792750326500236175",
"endTimeUnixNano": "1792750326507283768",
"attributes": [
{
"key": "messaging.system",
"value": {
"stringValue": "redis"
}
},
{
"key": "messaging.destination.name",
"value": {
"stringValue": "attachment-jobs"
}
}
],
"status": {}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "04e869835fad4f9084d43e06e14e76c9"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-worker"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "fBwFl0tKDo8=",
"traceState": "research=mtusi",
"parentSpanId": "9KMlJTMBuyw=",
"flags": 768,
"name": "attachment.consume",
"kind": "SPAN_KIND_CONSUMER",
"startTimeUnixNano": "1792750326507422172",
"endTimeUnixNano": "1792750327804567128",
"attributes": [
{
"key": "messaging.system",
"value": {
"stringValue": "redis"
}
},
{
"key": "messaging.destination.name",
"value": {
"stringValue": "attachment-jobs"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "hVwYzMMuuNY=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "s3.put",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750327689846447",
"endTimeUnixNano": "1792750327725331273",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "PutObject"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "jVGqvGri4Uo=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "s3.put",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750327725811048",
"endTimeUnixNano": "1792750327748991673",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "PutObject"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "JO3SZxYZ4MY=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "db.attachment.commit",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750327749782481",
"endTimeUnixNano": "1792750327774264032",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "04e869835fad4f9084d43e06e14e76c9"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-worker"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "4I6E5BiMbQY=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "s3.get",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750326553616293",
"endTimeUnixNano": "1792750326587508190",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "GetObject"
}
}
],
"status": {}
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "04e869835fad4f9084d43e06e14e76c9"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-worker"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6-v1"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "qf4dEv762AQ=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "image.render",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750326591248500",
"endTimeUnixNano": "1792750327644558207",
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "N6D/SCc+U54=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "s3.put",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750327644945635",
"endTimeUnixNano": "1792750327670349686",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "PutObject"
}
}
],
"status": {}
},
{
"traceId": "Dy55L61OS2ihFDpqbVuKVQ==",
"spanId": "hvY6XMLpMnE=",
"traceState": "research=mtusi",
"parentSpanId": "fBwFl0tKDo8=",
"flags": 256,
"name": "s3.put",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1792750327671123148",
"endTimeUnixNano": "1792750327688409335",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "PutObject"
}
}
],
"status": {}
}
]
}
]
}
]
}
+5 -3
View File
@@ -74,7 +74,8 @@
"fieldConfig": {
"defaults": {
"unit": "percentunit",
"min": 0
"min": 0,
"max": 1
},
"overrides": []
},
@@ -389,7 +390,8 @@
"fieldConfig": {
"defaults": {
"unit": "percentunit",
"min": 0
"min": 0,
"max": 1
},
"overrides": []
},
@@ -458,7 +460,7 @@
],
"fieldConfig": {
"defaults": {
"unit": "percentunit",
"unit": "short",
"min": 0
},
"overrides": []
+2 -2
View File
@@ -8,7 +8,7 @@ def panel(title,queries,unit='short'):
panels.append({'id':i+1,'type':'timeseries','title':title,'datasource':{'type':'prometheus','uid':'prometheus'},
'gridPos':{'x':(i%2)*12,'y':(i//2)*8,'w':12,'h':8},
'targets':[{'refId':chr(65+j),'expr':expr,'legendFormat':label} for j,(label,expr) in enumerate(queries)],
'fieldConfig':{'defaults':{'unit':unit,'min':0},'overrides':[]},'options':{'legend':{'displayMode':'list','placement':'bottom'}}})
'fieldConfig':{'defaults':{'unit':unit,'min':0,**({'max':1} if unit=='percentunit' else {})},'overrides':[]},'options':{'legend':{'displayMode':'list','placement':'bottom'}}})
panel('API requests / second',[('{{method}} {{route}}','sum by(method,route)(rate(http_server_requests_total[1m]))')],'reqps')
panel('API 5xx / all business requests',[('5xx fraction','(sum(rate(http_server_requests_total{status_class="5xx"}[1m])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[1m])),0.001)')],'percentunit')
@@ -21,7 +21,7 @@ panel('Oldest unfinished job age',[('oldest','max(queue_oldest_age_seconds)')],'
panel('DB pool',[('used {{process_instance}}','db_pool_used'),('waiting {{process_instance}}','db_pool_waiting')])
panel('Worker saturation',[('busy / capacity','sum(worker_busy) / clamp_min(sum(worker_capacity),1)')],'percentunit')
panel('Current process RSS',[('{{service}} {{process_instance}}','process_rss_bytes')],'bytes')
panel('Process CPU seconds / wall second',[('{{service}} {{process_instance}}','clamp_min(deriv(process_cpu_time_seconds[1m]),0)')],'percentunit')
panel('Process CPU seconds / wall second',[('{{service}} {{process_instance}}','clamp_min(deriv(process_cpu_time_seconds[1m]),0)')],'short')
panel('API availability burn rate; budget 0.5%',[(f'{w}s',f'(sum(rate(http_server_requests_total{{status_class="5xx"}}[{w}s])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[{w}s])),0.001) / 0.005') for w in (20,60)])
panel('Ready <=30s burn rate; budget 1%',[(f'{w}s eligible cohort',f'sum(attachment_slo_bad{{window="{w}"}}) / clamp_min(sum(attachment_slo_eligible{{window="{w}"}}),1) / 0.01') for w in (60,300)])
panel('Collector exporter queue / capacity',[('{{exporter}} size','otelcol_exporter_queue_size'),('{{exporter}} capacity','otelcol_exporter_queue_capacity')])
+4 -3
View File
@@ -11,7 +11,7 @@ from stack import ROOT,docker,ready
from verify_telemetry import bootstrap,upload,wait_ready,query,sql,trace_spans
OUT=ROOT/'evidence/incidents'; OUT.mkdir(parents=True,exist_ok=True)
stop=threading.Event(); requests=[]; lock=threading.Lock(); results={'phases':[]}
stop=threading.Event(); requests=[]; lock=threading.Lock(); results={'phases':[],'passed':False}
def traffic(headers,chat):
with httpx.Client(base_url='http://127.0.0.1:8080',timeout=10) as client:
@@ -137,8 +137,7 @@ def main():
'api_detection_seconds':fired(sustained,'APIAvailabilityBurn')[0],
'queue_lag_detection_seconds':fired(queued,'QueueLag')[0],
'ready_slo_detection_seconds':fired(queued,'AttachmentReadyBurn')[0],
'db_error_trace_id':trace_id,'backend_outage_business_requests':backend['requests'],'passed':True}
results['passed']=True
'db_error_trace_id':trace_id,'backend_outage_business_requests':backend['requests']}
finally:
stop.set()
for f in futures: f.result(timeout=15)
@@ -154,6 +153,8 @@ def main():
accepted=total('otelcol_receiver_accepted_'+signal+'_total')
sent=total('otelcol_exporter_sent_'+signal+'_total')
results['quiescent_collector'][signal]={'accepted':accepted,'sent':sent,'not_exported':accepted-sent}
results['passed']=True
results['summary']['passed']=True
(OUT/'timeline.json').write_text(json.dumps(results,indent=2)+'\n',encoding='utf-8')
print(json.dumps(results['summary'],indent=2),flush=True)