Compare commits

..
1 Commits
Author SHA1 Message Date
Vladislav Kunetskiy 5fda36b723 lab6 2026-11-06 17:30:30 +03:00
186 changed files with 5601 additions and 7136 deletions
-532
View File
@@ -1,532 +0,0 @@
# LAB6-PLAN — наблюдаемость: OTel, Collector, Prometheus/Loki/Tempo, Grafana
Статус: **v2 после независимого ревью** (рубрика, реализуемость по коду, security/privacy,
методология эксперимента). Реализация не начата. Коммит базы: `42629c4`.
Цель: **оценка 5, трек 2 (SLO и обнаружение инцидентов)**. База — перенесённый lab5;
бизнес-API 1.6.0 не меняется. План сначала закрывает M3/M4, затем трек.
## 0. Что изменено после ревью
| Находка | Решение в v2 |
|---|---|
| `r.Pattern` даёт `/` для всех ogen-маршрутов; статуса нет в ogen-middleware | Route резолвится через `server.FindPath`/`mux.Handler` до старта span; status — `statusWriter`; единственный access-лог/метрики — в telemetry-middleware |
| DB-инцидент не виден API-SLI (HAProxy убирает реплики) | Edge-SLI по HAProxy Prometheus exporter + `up`/no-data алерты; API-SLI остаётся диагностикой |
| 30d SLO при 7d retention; всплеск 2 мин не даёт 14.4× | SLO-окно 7d; live только fast-burn с прогревом ≥1h; slow-burn — `promtool test rules` на синтетике |
| `tests/load.py` closed-loop и без jobs | Новый open-loop `scripts/lab6_load.py` с upload+message, deadline; `tests/` не меняем |
| `pool.waiting` не существует | `empty_acquire_total` + `empty_acquire_wait_seconds` вместо waiting |
| Нет bucket boundaries | Явные `WithExplicitBucketBoundaries` для HTTP/job/TTR |
| `service_instance_id` удалять нельзя; Loki labels другие | Оставить instance label в Prometheus; Loki: index — `service_name`, `deployment_environment_name`; `service_instance_id` — structured metadata |
| Текущие логи содержат `user_id`, `path`, `query.filename`, `object_key` | Allowlist/redactor на границе telemetry + правка call sites + тест forbidden keys |
| `GRAFANA_ADMIN_PASSWORD` в `.env` утекает в app-контейнеры | Отдельный secret только для Grafana; `.env.example` без значения |
| Reconcile SQL не несёт traceparent | Добавить поля в `jsonb_build_object`; reaper/reconcile получают span; иначе честный new root + join по `job.id` |
| cAdvisor = docker.sock/host-root | cAdvisor исключён; CPU/RAM — cgroup/process-метрики приложения + метрики broker/PG |
| Backend-версии не закреплены | Таблица образов и digest'ов ниже; проверка конфигов в CI |
## 1. Инварианты
- Не менять `contracts/openapi.json`, `tests/`, семантику `contracts/README.md`,
состояния вложений и API 1.6.0. Расширения — только внутренние.
- Сохранить lab5: 202 после durable staging+TX intent, outbox, отдельный worker,
at-least-once, retry/DLQ/lease, идемпотентные варианты, S3/PostgreSQL.
- API не зависит от telemetry: недоступность Collector/хранилищ не блокирует
приём сообщений и не влияет на `/health/ready`.
- В telemetry не попадают: тела сообщений/изображения, пароли, Authorization,
session token, private key, signed URL, filename, `user_id`, `chat_id`,
`message_id`. `attachment_id`/`job_id` допустимы только в traces/logs при
обосновании (технические ID синтетических данных), но не в labels метрик.
- Все образы и Go-зависимости фиксируются версией+digest; конфиги — в Git.
- Один Compose; telemetry-сервисы под profile `telemetry`, чтобы lab5-регрессия
и CI без наблюдаемости не требовали лишней памяти.
## 2. Целевая архитектура
```mermaid
flowchart LR
C[client] --> LB[HAProxy :80/:8404]
LB -->|edge metrics /metrics| PROM[Prometheus]
LB --> API[API x2]
API --> PG[(PostgreSQL)]
API --> S3[(SeaweedFS)]
API -->|OTLP 4318| COL[OTel Collector]
RELAY[relay] --> PG
RELAY --> MQ[(RabbitMQ)]
MQ --> W[worker]
W --> PG
W --> S3
W -->|OTLP| COL
RELAY -->|OTLP| COL
COL -->|prometheus exporter :8889| PROM
COL -->|OTLP HTTP /otlp| LOKI[Loki]
COL -->|OTLP gRPC| TEMPO[Tempo]
PROM -->|scrape :15692| MQ
GRAF[Grafana :3000] --> PROM
GRAF --> LOKI
GRAF --> TEMPO
```
Сети:
- `app`: существующие API/worker/relay/PG/Redis/S3/broker/LB + Collector.
- `observability`: Collector, Prometheus, Loki, Tempo, Grafana; broker добавлен
только для scrape `:15692`; Prometheus не состоит в `app`.
- Grafana/Prometheus/Loki/Tempo публикуются только на `127.0.0.1`
(Grafana 3000, Prometheus 9090, Loki 3100, Tempo 3200) для evidence-скриптов;
OTLP 4317/4318, RabbitMQ 15692, self-metrics Collector 8888 — без host-портов.
- cAdvisor отсутствует. CPU/RAM приложения — cgroup v2/`/proc` внутри
контейнера + Go runtime; broker — `rabbitmq_prometheus`; PG — pool gauges и
`docker stats` для evidence. Это осознанный отказ от docker.sock.
## 3. Версии и образы (фиксируются в коммите)
Go-модули (проверены в module cache на 2026-11-04):
- `go.opentelemetry.io/otel`, `otel/trace`, `otel/metric`, `otel/log`,
`otel/sdk`, `otel/sdk/metric`, `otel/sdk/log` — **v1.47.0**;
- `otlptracehttp`, `otlpmetrichttp` — **v1.47.0**;
- `otlploghttp` — **v0.23.0** (это версия лог-экспортёра, не SDK);
- `go.opentelemetry.io/contrib/bridges/otelslog` — **v0.21.0**;
- `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` — **v0.72.0**
(только если нужен HTTP client instrumentation; серверный слой — свой);
- `github.com/exaring/otelpgx` — **v0.13.0** (pgx v5).
Backend-образы (manifest-list digest (Docker Hub tag API)):
| Роль | Образ | Digest |
|---|---|---|
| Collector contrib | `otel/opentelemetry-collector-contrib:0.164.0` | `sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b` |
| Prometheus | `prom/prometheus:v3.15.1` | `sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2` |
| Loki | `grafana/loki:3.6.4` | `sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511` |
| Tempo | `grafana/tempo:2.9.0` | `sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4` |
| Grafana | `grafana/grafana:13.2.5` | `sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84` |
Проверено: HAProxy `3.2-alpine` собран с `USE_PROMEX=1`; RabbitMQ
`4.3.7-management-alpine` уже содержит включённый `rabbitmq_prometheus`
(`[E ]`). Порты не публиковать наружу.
## 4. Контракт сигналов
| Сигнал | Инструмент / серия | Атрибуты | Источник |
|---|---|---|---|
| Edge availability | `haproxy_frontend_http_responses_total` (или backend) | `code` (5xx/все), frontend `http_front` | HAProxy :8404 |
| HTTP requests | counter `messenger.http.server.requests` | `http.request.method`, `http.route`, `http.response.status_class` | API middleware |
| HTTP duration | histogram `http.server.request.duration` (s) | method, route, status_code | API middleware |
| Jobs attempts | counter `messenger.jobs.processed` | `job.type`, `outcome` (`succeeded`,`failed`,`retried`,`superseded`) | worker |
| Job duration | histogram `messenger.job.duration` (s) | `job.type`, `outcome` | worker |
| Job accepted | counter `messenger.jobs.accepted` | `pipeline.version` | API на 202 |
| Time-to-ready | histogram `messenger.job.time_to_ready` (s) | `pipeline.version` | worker при ready |
| Ready within budget | counter `messenger.jobs.ready_within_budget` | `pipeline.version` | worker при ready ≤30s |
| Overdue jobs | gauge `messenger.jobs.overdue` | — | relay SQL (accepted>30s, не ready) |
| Queue depth | `rabbitmq_queue_messages_ready` (mapped) | `queue` | RabbitMQ :15692 |
| Oldest job age | gauge `messenger.queue.oldest_job_age` (s) | `queue` | relay SQL |
| Outbox age | gauge `messenger.outbox.oldest_unpublished_age` (s) | — | relay |
| Worker saturation | gauges `messenger.worker.busy`, `capacity` | `service.name` | worker |
| DB pool | gauges `messenger.db.pool.used`, `.idle`, `.max`; counters `messenger.db.pool.empty_acquire`, `.empty_acquire_wait_seconds` | `service.name` | pgxpool.Stat |
| App CPU/RAM | gauges `messenger.process.cpu_usage`, `.memory_usage_bytes`, `.memory_limit_bytes` | `service.name` | cgroup v2 / `/proc` |
| Broker process | `rabbitmq_process_*`, `rabbitmq_queue_*` | queue/process | RabbitMQ plugin |
| Collector self | `otelcol_*` | pipeline/exporter | Collector :8888 |
Правила:
- Route — шаблон (`/api/v1/chats/{chat_id}/messages`), не UUID. Резолв — **до**
старта span: `server.FindPath(r.Method, r.URL)` → `PathPattern()`;
extension-маршруты — `mux.Handler(r)`; unmatched/405 — константа `unmatched`.
`r.Pattern` не использовать. Тест: каждый `OperationID` из
`internal/transport/rest/internal/oas` имеет route из OpenAPI; UUID-запрос даёт
шаблон; `/foo/bar` даёт `unmatched`.
- `http.route` не должен содержать raw path/query; `status_class` — 1xx…5xx.
- Buckets (секунды, explicit): HTTP `0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10`;
job `0.1,0.25,0.5,1,2.5,5,10,30,60,120`; TTR `1,2.5,5,10,20,30,60,120,300`.
Тест `metricstest` на границы и попадание известного значения.
- Prometheus exporter: `translation_strategy: UnderscoreEscapingWithSuffixes`;
`resource_constant_labels.included: ["service.name","service.instance.id","deployment.environment.name","service.version"]`.
`service.instance.id` **не удалять** (2–3 реплики, иначе duplicate series).
Фактические имена (`http_server_request_duration_seconds_bucket`,
`messenger_http_server_requests_total`) снять с `:8889/metrics` и зафиксировать
в REPORT/панелях.
- Логи: JSON, `time`, `level`, `event`, `service.name`, `service.instance.id`,
`trace_id`, `span_id` при span, `request_id`, `operation`, `route`, `status`,
`duration`; allowlist только этих ключей + `error_code`, `job_type`, `outcome`,
`attempt`, `pipeline_version`, `queue`, `count`. `error` — после redaction
(DSN/URL/signature) и с лимитом. `user_id`, `chat_id`, `message_id`,
`filename`, `path`, `query`, `params`, `object_key`, `upload_url`, `payload`,
`remote_addr`, `user_agent` — не экспортируются.
- Loki: index labels — `service_name`, `deployment_environment_name`
(`ignore_defaults: true`); `service_instance_id`/`service_version` — structured
metadata; log-атрибуты — structured metadata. Запросы:
`{service_name="messenger-api"} | trace_id="..."`, `| severity_text="error"`
(не `| json`, не `level` как label). Проверить на реальной записи.
- Traces: реальные server/consumer spans; W3C `traceparent`/`tracestate` через
outbox payload; retry — отдельный span с `job.attempt`.
## 5. Этапы
### A. Подготовка, бюджет, baseline
1. Остановить старый lab5-стенд (`mtusi-messenger-lab5-*`) и `lab5-it-*`,
volumes не удалять. Освободить память/CPU.
2. **Ресурсный блокер (на момент плана):** тогда было ~2053 МБ / 2 CPU; лимиты существующего
compose уже ~3024 МБ / 4.75 CPU. Для M4/M5 нужно **≥ 6 ГБ RAM и ≥ 4 CPU**
(Docker Desktop settings) либо явное сокращение: M3 на tight-бюджете, M4/M5
не заявлять. Зафиксировать `docker info`, `docker stats` idle/load.
Telemetry-лимиты: collector 192M/0.25, Prometheus 320M/0.5, Loki 320M/0.5,
Tempo 192M/0.25, Grafana 192M/0.25 + `GOMEMLIMIT` для Go-сервисов. Диск:
`df`, `docker system df`, retention size.
3. Снять baseline lab5 **без telemetry** для регрессии (`make unit-test`,
smoke, queue/faults/attachments/presign/idempotency/lb/persistence/failover).
Baseline для порогов трека снимается только после C, с финальной
telemetry-конфигурацией.
4. Создать `evidence/lab6/` и `evidence/lab6/queries/`; закоммитить
preregistered `track2/plan.md` до прогонов.
5. `.env.example`: только несекретные `OTEL_*`, лимиты, `VERSION`; без
`GRAFANA_ADMIN_PASSWORD`. Grafana secret — `secrets/grafana.env` (gitignored)
или Docker secret; `.env` в app-контейнеры его не получает.
6. `make` targets: `observability-up/down` (profile telemetry), `test-observability`,
`test-slo` (не занимать существующий `test-track2`), `unit-test`,
`regression`. `VERSION=$(git describe --always --dirty)` передать build arg.
**Acceptance A:** известен реальный RSS/CPU; VM увеличена или scope снижен;
baseline-тесты зелёные; версии/digests и бюджет в REPORT.
### B. SDK-фундамент и HTTP/логи
Новый `internal/telemetry`:
- `Setup(ctx, serviceName, version) (Shutdown, error)`:
- Resource: `resource.Merge(resource.Default(), codeResource)` с код-ресурсом
последним; `service.name` из аргумента (не env), `service.version`,
`service.instance.id` из общего `instanceid.FromEnvOrHostname()` (учитывает
`INSTANCE_ID`), `deployment.environment.name=lab`;
- TracerProvider: sampler явно из env (`parentbased_always_on` для lab;
`parentbased_traceidratio` только если задан), BatchSpanProcessor
queue 2048, timeout 5s, export timeout 5s, batch 512;
- MeterProvider: PeriodicReader 5s на время трека (15s обычно), OTLP HTTP;
- LoggerProvider: `sdk/log` + `otlploghttp` + `otelslog`, bounded batch
(queue 2048, timeout 5s); `otelslog` bridge + fanout;
- `TELEMETRY_ENABLED=0` → noop providers; стандартный `OTEL_SDK_DISABLED`
в Go SDK не используется (проверено), не полагаться на него;
- shutdown принимает `context.Background()` с таймаутом 3s, вызывается и на
error-пути до `os.Exit`; flush ≤3s, чтобы уложиться в stop_grace 15s.
- `log.go`: fanout zap JSON stdout + otelslog; **allowlist/redactor** на границе
(см. §4), обрезка request_id/UA/error; `event` как отдельный атрибут.
- `http.go`: единственный HTTP access-лог/метрики:
- route через `server.FindPath`/`mux.Handler`; statusWriter; span attrs
method/route/status; counter/histogram; исключение `/health/*`;
- порядок: requestID → instanceID → **telemetry** → bodyLimit → mux, чтобы
413/ошибки bodyLimit тоже попадали в метрики; span создаётся до bodyLimit;
- ogen `loggingMiddleware` удалить или оставить только debug без доступа к
raw path/query; обновить `logging_test.go` и добавить тест route/status.
- `db.go`: `otelpgx.NewTracer(WithTracerProvider, WithDisableSQLStatementInAttributes,
WithDisableConnectionDetailsInAttributes)`; `postgres.New(..., WithQueryTracer(...))`
(опция, noop для migrate/jobctl); pool gauges через observable callbacks:
used/idle/max + empty_acquire counters. `Store.Ping` — bounded 2s, чтобы
readiness отвечал 503, а не висел.
- `s3.go`: декоратор **всех** методов `objectstore.Store`
(`Ping/Put/Open/Head/Copy/Delete/List/PresignPut`), span на операцию;
`Open` span закрывается при `Close` тела; `PresignPut` не пишет URL; attrs —
bucket/operation, без полного ключа/`chat_id`.
- `process.go`: cgroup v2 (`cpu.stat`, `memory.current`, `memory.max`) с fallback
`/proc/self/stat`; gauges CPU/RAM/limit; тесты на парсер.
- `job.go`: `Inject/Extract`, `StartJobSpan`, `RecordJob`, `RecordAccepted`/
`RecordReady`; валидация `traceparent`/`tracestate`.
Точки:
- `cmd/messenger`, `cmd/worker`, `cmd/relay`: Setup до логгера, defer/явный
shutdown; `cmd/migrate`, `s3init`, `jobctl` — без telemetry.
- `Dockerfile`/compose: `VERSION` build arg, `var version = "dev"` в main;
per-service `OTEL_SERVICE_NAME` в `environment:` (explicit перекрывает
`env_file` `.env`).
- `internal/config` не разрастается; telemetry env читается SDK/Setup.
**Acceptance B:** `go test -race` telemetry-пакет (route/status, bucket boundaries,
allowlist forbidden keys, resource service.name для worker/relay, shutdown на
error); приложение работает без Collector; `make unit-test`.
### C. Вертикальный M3
1. Compose: profile `telemetry`, сервисы collector/prometheus/loki/tempo/grafana,
volumes, healthchecks, limits, сети. Минимальные конфиги — сразу, иначе
`compose up` не стартует; D — hardening.
2. Collector: OTLP receivers → `memory_limiter` (limit_mib 140, spike 40,
check 1s) → `batch` (5s, 1024) → exporters:
- `prometheus` :8889 с `resource_constant_labels` и `translation_strategy`,
без `sending_queue`/устаревшего `resource_to_telemetry_conversion`;
- `otlphttp/loki` → `http://loki:3100/otlp`; `otlp/tempo` → `tempo:4317`,
`tls.insecure: true`;
- `sending_queue: {enabled: true, sizer: bytes, queue_size: 10485760,
num_consumers: 2}`, `retry_on_failure` с `max_elapsed_time: 30s`;
- `service.telemetry.metrics.readers` pull Prometheus на :8888;
- `health_check` :13133; никаких pprof/zpages наружу.
3. Prometheus: scrape collector :8889, collector-self :8888, HAProxy :8404,
RabbitMQ :15692; retention 7d + `retention.size=2GB`; rules files.
HAProxy: `http-request use-service prometheus-exporter if { path /metrics }`
в stats frontend; проверить имена `haproxy_*`.
4. Loki: filesystem, schema v13, compactor retention 168h,
`allow_structured_metadata`, `otlp_config` mapping из §4; лимиты
`max_line_size: 32KB`, `max_line_size_truncate: true`, per-stream rate.
Tempo: local storage, retention 72h, compactor, OTLP receiver.
5. Grafana: datasources UID `prometheus`/`loki`/`tempo`; provisioning dashboards;
admin secret только Grafana; anonymous off; loopback. Добавить
`tracesToLogs` (trace_id) и `logsToTraces` (service.name).
6. M3-проверка **обязательно включает worker**: upload → consumer span в Tempo
+ `job.claimed`/`job.ready` с trace/span ID; `make test` с telemetry;
`scripts/lab6_verify.py` проверяет три сигнала, route-шаблоны, отсутствие
UUID в labels, forbidden sentinels (тело/имя файла/Authorization).
7. Dashboard `api-overview.json`: RPS/errors/p50/p95/p99 из histogram; без
`| json` для логов.
**Acceptance C (M3):** `docker compose --profile telemetry up -d --build`;
healthchecks; `make unit-test && make test`; Grafana datasources/dashboard из Git;
API+worker traces/logs; Collector/3 хранилища реально получают данные; нет
секретов/тел в проверенных записях. Если VM < 6 ГБ — M3 на tight-бюджете,
M4/M5 не заявлять.
### D. Инфраструктура: hardening и provisioning
- `infra/otel/collector.yaml`, `infra/prometheus/prometheus.yml`,
`infra/prometheus/rules/*.yml`, `infra/loki/loki.yaml`,
`infra/tempo/tempo.yaml`, `infra/grafana/provisioning/**`,
`infra/grafana/dashboards/**`, `infra/runbooks/**`.
- Prometheus relabel: **не удалять** `service_instance_id`; удалять `pod`,
`service_version` и служебные label'ы, если появятся; cAdvisor исключён,
поэтому `container_label_*` не являются источником панелей. Оставить
`service_name`, `deployment_environment_name`.
- Loki OTLP mapping: `ignore_defaults: true`; index — `service.name`,
`deployment.environment.name`; `service.instance.id`/`service.version` —
structured metadata; log-атрибуты — structured metadata; `level` не label.
- Grafana secrets: `secrets/grafana.env` (gitignored) или Docker secret;
`GF_SECURITY_ADMIN_PASSWORD__FILE` проверить; fallback — env_file только
Grafana. `.env.example` не содержит пароль.
- Compose `logging: {driver: json-file, options: {max-size: "10m", max-file: "3"}}`
для app/telemetry; volumes: prometheus/loki/tempo/grafana; `down` сохраняет,
`down -v` — осознанный сброс.
- Healthchecks: collector `:13133`, Prometheus `/-/healthy`, Loki `/ready`,
Tempo `/ready`, Grafana `/api/health`; проверить наличие wget/curl в образах.
- CI: `contracts`/lab5 app job без profile; отдельный observability job с
`--profile telemetry` и `make test-observability`; конфиг-валидация
`promtool check config/rules`, Loki/Tempo `-verify-config`, `compose config`.
- `scripts/check_evidence.py`: скан evidence на `X-Amz-`, `PASSWORD=`,
`://...:...@`, `BEGIN PRIVATE KEY`, UUID в metric labels; запуск в
`test-observability`.
**Acceptance D:** все healthchecks; `promtool`/Loki/Tempo config valid;
provisioning импортируется без ручных действий; restart сохраняет данные;
`docker compose config --no-env-resolution` не печатает секреты.
### E. Полный набор сигналов
1. API: counter/histogram, route/status, health исключён; 413/404/405 тоже
учитываются (telemetry до bodyLimit/mux); p50/p95/p99 из `_bucket`.
2. Worker: busy/capacity, job counters/duration, accepted/ready_within_budget/
time_to_ready; attempt/outcome; busy inc/dec вокруг claim/process.
3. Relay: oldest_unpublished_age, publish failures, requeue spans; oldest job
age/overdue SQL; не дублировать серии (один relay).
4. Queue depth: `rabbitmq_queue_messages_ready{queue="attachment.process.v1"}`;
mapping задокументировать.
5. DB: pool used/idle/max, empty_acquire counters; S3 spans; process cgroup.
6. Dashboard `jobs-pipeline.json`, `infra-saturation.json`: queue depth/oldest
age, retry rate, worker saturation, DB pool, app CPU/RAM, broker process,
collector drops; units и PromQL сохранить в `evidence/lab6/queries/`.
7. No-data: `up{job=...}`, `absent(metric[5m])`, `otelcol_*` refused.
**Acceptance E:** каждая серия из §4 существует после smoke; route не UUID;
bucket'ы корректны; p95 не среднее; labels без IDs; collector self-metrics
видны; panel queries сохранены.
### F. W3C context через очередь
1. `insertOutboxTx` (`pipeline_repository.go:352`) захватывает
`traceparent`/`tracestate` из `ctx` и кладёт в payload `JobMessage`
(поля уже разрешены `jobs.schema.json`; миграция payload не нужна).
2. Relay (`outbox/relay.go`): из payload извлекает контекст, стартует
`job.publish` span, инжектирует свой контекст в message перед
`PublishConfirmed`.
3. Worker (`worker.go:155`): из delivery извлекает контекст, стартует
`job.process` span; все DB/S3/logs — с этим ctx; retry (`RetryJob`) пишет
новый outbox payload с контекстом текущего attempt.
4. Reaper/reconcile: `ReapExpiredLeases` получает span `job.requeue`;
`ReconcileQueuedJobs` расширяется SQL-параметрами `traceparent`/`tracestate`
(сейчас payload собирается в `jsonb_build_object` без них). Иначе — честно
new root + join по `job.id`, не называть это link.
5. `JobMessage.Validate` проверяет pattern traceparent и maxLength tracestate;
невалидный контекст не валит job, логируется и заменяется новым.
6. `cmd/jobctl` (replay/reprocess) не инициализирует telemetry — его outbox
получает new root; в REPORT указать join по job.id.
7. Не помещать bytes/credentials в payload; closed schema.
**Acceptance F:** один upload → API span → relay publish → worker consume;
retry с attempt=2 и общей цепочкой (или явный link); traceparent не ломает
schema; `make test-faults` проходит.
### G. SLI/SLO и alerts (M4)
Выбранное окно: **7 дней** (совпадает с retention Prometheus; 30d-политика
описана как production, live не заявляется). Бюджеты:
- API availability: 99.5% / 7d → 50.4 мин; bad = 0.5%.
- TTR: 99% accepted jobs ready ≤30 с / 7d → 100.8 мин; bad = 1%.
| SLO | SLI (edge/app) | Target | Fast 14.4× | Slow 6× |
|---|---|---|---|---|
| API availability | HAProxy 5xx+503+504 / все ответы `http_front` | 99.5% | error ratio > 7.2% на 1h и 5m | > 3% на 6h и 30m |
| Time-to-ready | `ready_within_budget` / `accepted`; failed = bad; overdue gauge | 99% до 30s | > 14.4% на 1h и 5m | > 6% на 6h и 30m |
Правила:
- `slo:api_error_ratio:5m/1h/6h/30m`, `slo:ttr_bad_ratio:*`; burn =
ratio / (1−SLO); `for: 0` для burn-page; evaluation 5s на трек.
- `APIErrorBudgetFastBurn`, `APIErrorBudgetSlowBurn`, `TTRErrorBudgetFastBurn`,
`QueueOldestJobAgeHigh` (warning >120s/10m, critical >600s/5m),
`QueueDepthGrowing` (производная выше baseline-порога, 10m),
`WorkerSaturated` (busy/capacity >0.8 **и** рост oldest age, 10m),
`DBPoolSaturated` (empty_acquire rate >0 / used/max >0.8, 5–10m),
`CollectorDroppedTelemetry`, `TelemetryExporterQueueFull`,
`APISLIMissing`/`QueueMetricsStale` (`up==0`/`absent`, 2m).
- `APIHighErrorRate` 2%/5m — только diagnostic/ticket, не page; inhibition
под burn-алертами.
- Alert state poller `scripts/lab6_alerts.py`: `/api/v1/alerts`,
`/api/v1/rules`, `ALERTS_FOR_STATE`; пишет `alerts.csv` с pending/firing/
resolved, injection/restore, first_good, evaluation/scrape interval.
- Dashboard: API RPS/errors/p50-99; jobs accepted/succeeded/failed/retried;
duration/TTR; queue depth/age; worker saturation; DB pool; app CPU/RAM;
collector queue/drop; `up`; Loki trace_id filter; Tempo trace link.
**Acceptance G (M4):** p50/p95/p99 из histogram; SLI/SLO/окно/бюджет записаны;
alerts firing/resolved проверены; no-data защита; dashboard importable;
PromQL + units в evidence.
### H. Инциденты уровня 4
1. **Worker остановлен** (`scripts/stop-worker.sh`): upload→202; queue depth и
oldest age растут, jobs processed падает; traces без consumer; после
`start-worker.sh` drain, ready, alert resolved; 0 потерь.
2. **DB недоступна**: `stop postgres` 10–15 мин, worker заранее остановлен,
чтобы не было requeue-шторма; edge SLI видит 503/504, HAProxy убирает
реплики, readiness/`up` падают, pool/TTR-метрики объясняют. Для `pause`
отдельно фиксировать probe timeout, **не** утверждать 503.
3. **Telemetry down** раздельно:
- остановить только Tempo → collector queue/refused растут, API жив;
- остановить Collector → API жив, Prometheus `up{job="otel-collector"}=0`,
потери telemetry ограничены;
- остановить Prometheus отдельно → observability недоступна, это ограничение,
не «доказательство отказа API».
Измерить RSS/`docker stats`, `otelcol_*`, app export failures; объяснить,
что SDK queue drops не полностью наблюдаемы (см. риски).
**Acceptance H:** для каждого — команда, UTC injection/restore, JSON запросов,
firing/resolved, причина найдена по сигналам; REPORT с двумя инцидентами и
третьим telemetry-down; 0 потерь подтверждённых работ.
### I. Трек 2 — SLO и обнаружение инцидентов (M5)
Гипотеза (preregistered): multi-window burn-rate не пейджит на краткий
всплеск (<5 мин) при 0 ложных срабатываниях на нормальном профиле, но
обнаруживает длительную деградацию; TTD/TTR измеряются с точностью
≤(export+batch+scrape+eval+for), а не «по ощущениям».
Инструменты:
- `scripts/lab6_load.py` — **open-loop** fixed arrival rate, смесь POST
message + attachment upload, deadline 5s (таймаут = bad), fixed seed,
фиксирует accepted/ready/failed; `tests/` не менять.
- `scripts/lab6_alerts.py` — poll 5s.
- `scripts/lab6_track2.py` — фазы, pause/stop postgres, stop/start worker,
timestamps, вызовы poller; evidence.
- `scripts/lab6_verify.py` — Prometheus/Loki/Tempo/Grafana API, sentinel-проверки.
Методика:
1. Калибровка: измерить capacity worker/API на малом rate; выбрать upload rate
≤50% capacity; посчитать backlog/drain; worker concurrency=1.
2. Warmup ≥70 мин (заполнить 1h окно), baseline 20 мин: 0 page; negative controls:
4xx-трафик (не bad), 1% 5xx 10 мин (ниже порога), 60–90s blip.
3. **Burst**: `pause postgres` 2 мин; ожидаем **нет** fast-page; counterfactual
правило только с 5m-окном должно было бы сработать (~22s) — это доказывает
ценность long window. Зафиксировать.
4. **Sustained**: `stop postgres` 15 мин (worker остановлен заранее); fast-page
ожидается ~4m19s после injection при полном 1h окне; restore; TTR_service
(первый 2xx/readiness) отдельно от TTR_alert (первое `resolved`, ожидаемо
~56 мин из-за 1h окна). Если resolution не дождёмся — записать модель и
observed silence, не выдавать остаточный firing за FP.
5. **TTR/queue**: отдельный прогон `stop-worker.sh` 10–15 мин при upload rate;
oldest age/overdue растут; alert; drain; критерий queue depth <5,
oldest <5s два scrape, failed/DLQ не растут.
6. **False positives**: 20–30 мин после разрешения; считать evaluations
(20 мин / 5s = 240), 0 firing, с negative controls; не считать вакуумный
«0 ошибок» доказательством.
7. **Slow-burn 6h/30m и 30d-бюджет** — только `promtool test rules` на
синтетике с 6h+ series; ожидаемые TTD 4m19s/10m48s; live не заявлять.
8. **Runbook held-out**: `infra/runbooks/db-availability.md`,
`slo-burn.md`, `queue-lag.md`, `telemetry-backend-down.md`; второй человек
получает только имя алерта/время, работает только с Grafana/Prometheus/
Loki/Tempo ≤10 мин; transcript и время до причины.
Timeline: ~3 часа для availability (warmup 70 + baseline 20 + burst 2 + settle
10 + sustained 15 + resolution до 56 + FP 20); TTR-прогон отдельно. Если время
не позволяет — live только sustained/fast, resolution моделируется и явно
помечается.
**Acceptance I (M5):** preregistered план; TTD/TTR с формулой и погрешностью;
0 ложных page на контролях; 0 потерь; promtool slow-burn; runbook проверен
held-out; ограничения (single-node, 7d окно, 2–4 CPU) описаны.
### J. Документация и сдача
- `REPORT.md`: запуск с чистого clone, образы/digests, healthchecks, volumes,
bootstrap/миграции, mapping `.env` → реальные env, SLO/бюджеты/окна,
сигналы, инциденты, трек, ограничения, trust matrix.
- `infra/README.md`, `infra/otel/README.md`: pipelines, backends, provisioning,
bounded buffering, как проверить; **README задания не менять**.
- `evidence/lab6/README.md`: что/какой командой получено; scanner секретов;
`queries/` с PromQL/LogQL/TraceQL и units.
- `make` targets, CI observability job, config validation.
- Финальная регрессия lab5 (включая attachments/presign/idempotency/
lb-readiness/persistence/failover), `go test -race`, `make lint`.
- Очистить временные контейнеры; volumes оставить для демонстрации,
`down -v` только документированный сброс.
## 6. Матрица проверки
| Критерий | Команда/сценарий | Доказательство |
|---|---|---|
| M3: стенд из Git, healthchecks, volumes | `docker compose --profile telemetry up -d --build`; `compose ps` | `stand.txt` |
| M3: API/worker traces+logs | upload; Tempo search; Loki trace_id | `trace-log.txt` |
| M3: три сигнала и dashboard | Prometheus/Loki/Tempo/Grafana API; Grafana datasource/dashboard | `signals.txt`, `dashboard.json` |
| M3: нет секретов/тел, route не UUID | `scripts/lab6_verify.py` sentinels + label scan | `privacy.txt`, `cardinality.txt` |
| M3: lab5 regression | `make unit-test && make test` + attachments/presign/idempotency/lb | `regression/*` |
| M4: pipeline trace upload→publish→consume, retry | upload + transient fault | `trace-pipeline.txt` |
| M4: p50/95/99, error ratio, queue, pool, saturation | PromQL из `queries/` | `queries/*`, `dashboard.json` |
| M4: alerts firing/resolved | worker stop, DB stop, poller | `alerts.csv`, `incidents.md` |
| M4: telemetry down | stop Tempo/Collector; load; stats | `telemetry-down.txt` |
| M5: трек 2 | baseline/burst/sustained/FP/promtool/runbook | `track2/*` |
## 7. Риски и ограничения
1. **Ресурсы:** на момент плана было 2 ГБ/2 CPU; сейчас Colima VM увеличена до
4 CPU / 8 ГиБ, чего достаточно для M4/M5. Telemetry на 2 CPU влияла на
latency/TTD; baseline только с финальной конфигурацией.
2. **OTel logs SDK** — evolving API; изолировать в `internal/telemetry`,
pin v1.47.0/v0.23.0, in-memory exporter tests.
3. **Loki OTLP**: trace_id в structured metadata, не в body; проверять реальной
записью. `| json` не использовать.
4. **SDK queue drops** не полностью экспортируются Go SDK; измерять
collector `otelcol_refused/send_failed` + app export failures, честно
писать ограничение.
5. **Collector memory limiter** — только `limit_mib` (не `limit_percentage` на
Docker Desktop, иначе считает память VM); queue `sizer: bytes`; retention
size; json-file rotation.
6. **HAProxy edge SLI** зависит от Promex; проверить `USE_PROMEX` (уже
подтверждено) и точные имена; fallback blackbox probe — ниже качество.
7. **Alert timing**: scrape/eval 5s, OTel export 5s, batch 5s, `for:0`; TTD
имеет погрешность; slow-burn только synthetic.
8. **cAdvisor исключён**: CPU/RAM приложения из cgroup, PG/брокер — свои
метрики + `docker stats`; в REPORT явно указать границы.
9. **Секреты/кардинальность**: allowlist логов, redaction ошибок, Loki limits,
evidence scanner; `service.instance.id` остаётся в Prometheus, но не в Loki
index.
10. **Регрессия lab5**: telemetry init не блокирует старт; отдельные тесты без
Collector; профиль telemetry; shutdown до `os.Exit`.
## 8. Открытые решения перед реализацией
1. **Оценка/трек:** план на 5 + трек 2. Если достаточно 4 — раздел I
вырезается. Трек 1 (цена наблюдаемости) потребует другого эксперимента;
каркас M3/M4 общий.
2. **Docker Desktop:** поднять до ≥6 ГБ RAM и ≥4 CPU (рекомендуется) или
согласиться на tight-режим и не заявлять M4/M5.
3. **Edge SLI:** HAProxy Promex (выбран) vs blackbox probe; влияет на точность.
4. **Slow-burn:** только synthetic `promtool` (выбрано) vs многoчасовой live
прогон.
5. **Retention:** Prometheus 7d/2GB, Loki 7d, Tempo 72h; менять только с
пересчётом диска.
+88 -29
View File
@@ -1,8 +1,8 @@
# Отчёт — лабораторная 6 # Отчёт — лабораторная 6
- Автор, группа: Кунецкий Владислав, БВТ2303 - Автор, группа: Кунецкий Владислав, БВТ2303
- Целевая оценка; выбранный трек 5: **5, трек 2 (SLO и обнаружение инцидентов); полный live-прогон выполнен** - Целевая оценка; выбранный трек 5: **5, трек 2 (SLO и обнаружение инцидентов); полный live-прогон выполнен, есть ограничения**
- Commit/PR: один коммит `lab6` (не запушен) - Commit/PR: один коммит `lab6` в `main`, запушен в origin
- Использованные источники, библиотеки и помощь ИИ: Go 1.27, OTel Go SDK v1.47.0 / - Использованные источники, библиотеки и помощь ИИ: Go 1.27, OTel Go SDK v1.47.0 /
otelslog v0.21.0 / otelpgx v0.13.0, OTel Collector contrib 0.164.0, otelslog v0.21.0 / otelpgx v0.13.0, OTel Collector contrib 0.164.0,
Prometheus 3.15.1, Loki 3.6.4, Tempo 2.9.0, Grafana 13.2.5. ИИ-ассистент Prometheus 3.15.1, Loki 3.6.4, Tempo 2.9.0, Grafana 13.2.5. ИИ-ассистент
@@ -18,8 +18,10 @@ make up # docker compose --profile telemetry up -d --
# дождаться http://localhost:8080/health/ready # дождаться http://localhost:8080/health/ready
make test # публичный smoke make test # публичный smoke
make test-observability # сигналы, route labels, Grafana, sentinels make test-observability # сигналы, route labels, Grafana, sentinels
make test-slo # promtool-ready rules + короткий alert smoke make test-slo # короткий alert smoke; promtool rules — CI job
python3 scripts/lab6_track2_full.py --out evidence/lab6/track2/full python3 scripts/lab6_track2_full.py --warmup 3600 --baseline 1200 --burst 120 \
--settle 3600 --sustained 900 --resolution 3600 --ttr 900 --false-positive 1200 \
--out evidence/lab6/track2/full
``` ```
Остановка без потери данных: `docker compose --env-file .env down`. Остановка без потери данных: `docker compose --env-file .env down`.
@@ -80,7 +82,7 @@ flowchart LR
| Сигнал | Имя | Единица/лейблы | | Сигнал | Имя | Единица/лейблы |
|---|---|---| |---|---|---|
| HTTP requests | `messenger_http_server_requests_total` | method, route, status_class | | HTTP requests | `http_server_request_duration_seconds_count` | histogram count; method, route, status_code/status_class |
| HTTP duration | `http_server_request_duration_seconds` | histogram, seconds, method/route/status | | HTTP duration | `http_server_request_duration_seconds` | histogram, seconds, method/route/status |
| Jobs attempts | `messenger_jobs_processed_total` | job.type, outcome | | Jobs attempts | `messenger_jobs_processed_total` | job.type, outcome |
| Job duration | `messenger_job_duration_seconds` | histogram, seconds | | Job duration | `messenger_job_duration_seconds` | histogram, seconds |
@@ -94,19 +96,34 @@ flowchart LR
| DB pool | `messenger_db_pool_used/idle/max`, empty-acquire counters | service.name | | DB pool | `messenger_db_pool_used/idle/max`, empty-acquire counters | service.name |
| App CPU/RAM | `messenger_process_cpu_seconds_total`, `memory_usage/limit_bytes` | service.name | | App CPU/RAM | `messenger_process_cpu_seconds_total`, `memory_usage/limit_bytes` | service.name |
| Collector | `otelcol_*` | pipeline/exporter | | Collector | `otelcol_*` | pipeline/exporter |
| Edge SLI | `haproxy_frontend_http_responses_total{proxy="http_front"}` | code | | Edge SLI | `haproxy_backend_http_responses_total{proxy="api_backend"}` | code; `/health/*` — отдельный `api_health` |
SLO-окно — 7 дней (совпадает с retention Prometheus): API availability 99.5% SLO-окно — 7 дней; Prometheus retention 10d с лимитом 2GB: API availability 99.5%
(бюджет 50.4 мин), время до ready 99% ≤30 с (бюджет 100.8 мин). (при request-based SLI бюджет 50.4 мин корректен только при постоянном трафике;
Burn-rate: fast 14.4× на 1h+5m, slow 6× на 6h+30m. это не измеренный минутный бюджет). TTR SLO — **доля заданий**, ready ≤30 с
в 99% случаев; это не бюджет времени, и 100.8 мин не является измеренным
бюджетом TTR.
Burn-rate: fast 14.4× на 1h+5m, slow 6× на 6h+30m. Для 7-дневного
бюджета (168 ч) это 8.6% бюджета за час и 21.4% за 6 ч; при непрерывном
горении бюджет исчерпывается за 11.7 ч / 28 ч соответственно.
Prometheus retention настроен на 10d, но с `--storage.tsdb.retention.size=2GB`;
7d-окно не гарантировано, если объём данных достигает лимита.
Полный live-прогон трека 2 выполнен `scripts/lab6_track2_full.py`: | Множитель | Окна | Бюджет 7d, который сжигает | Время до исчерпания |
70m warmup → 20m baseline → 2m burst → 15m sustained → 60m resolution → |---:|---|---:|---:|
15m TTR → 20m false-positive. Старт `19:28:25Z`, финиш `23:05:40Z`. | fast 14.4× | 1h + 5m | 8.6% за час | 11.7 ч |
Warmup: 840 операций, 0 failed; burst не пейджил; sustained обнаружен | slow 6× | 6h + 30m | 21.4% за 6 ч | 28 ч |
`SlowBurn` через **3m35s**, `FastBurn` через **5m15s**; worker-down
`JobsOverdue` — pending через 46s, firing через 2m46s, resolved через 17s Теоретический TTD при 100% ошибок: fast ≈ 4.3 мин (`0.072 × 60`),
после restore. Детали и residual-окна: `track2/full/ttd-ttr.md`. slow ≈ 10.8 мин (`0.03 × 360`). Если 6h-окно содержит только ~1ч45м
истории, slow выглядит как ~3.2 мин — такой TTD нерепрезентативен и не
сравнивается с fast. В отчёте это помечается явно.
Полный live-прогон выполнен 2026-11-06: warmup 60m, baseline 20m, burst 2m,
пауза 60m, sustained PostgreSQL 15m, resolution 60m, TTR 15m, false-positive
20m. `Aborted=False`; фактический timeline и числа — в `track2/full/` и
`track2/ttd-ttr.md`. Slow-burn 6h warmup не выполнялся, поэтому slow-TTD
считается ограниченным наблюдением, а не 6h-экспериментом.
## Доказательства ## Доказательства
@@ -118,14 +135,41 @@ Warmup: 840 операций, 0 failed; burst не пейджил; sustained о
| Trace upload → publish → worker, retry | Tempo trace | API span → `job.publish` → `job.process` → S3/DB; attempt 1/2 | `trace-pipeline.json`, `trace-retry.txt` | | Trace upload → publish → worker, retry | Tempo trace | API span → `job.publish` → `job.process` → S3/DB; attempt 1/2 | `trace-pipeline.json`, `trace-retry.txt` |
| Лог и trace связаны | Loki query по `trace_id` | worker-запись найдена | `telemetry.txt` | | Лог и trace связаны | Loki query по `trace_id` | worker-запись найдена | `telemetry.txt` |
| Нет тел/токенов/filename | sentinel-запрос | 0 совпадений | `telemetry.txt` | | Нет тел/токенов/filename | sentinel-запрос | 0 совпадений | `telemetry.txt` |
| Worker stop → backlog → drain | `stop-worker.sh`, controlled load, `start-worker.sh` | queue 3→0, oldest 15s→0; `JobsOverdue` fired/resolved | `worker-stop.txt`, `worker-stopped-load.json`, `track2/overdue-alert.txt` | | Worker stop → backlog → drain | `stop-worker.sh`, controlled load, `start-worker.sh` | queue 3→0, oldest 15s→0; `JobsOverdue` fired/resolved | `worker-stop.txt`, `worker-stopped-load.json` |
| Collector down | stop collector, smoke | API продолжает работать; TelemetryCollectorDown/CollectorDroppedTelemetry | `collector-down.txt` | | Collector down | stop collector, load + probes | API продолжает работать; TelemetryCollectorDown pending→firing→resolved | `collector-down.txt` |
| Telemetry storage down | stop Loki+Tempo, load, RSS | API работает; collector queues bounded, затем 0 | `storage-down.txt` | | Telemetry storage down | stop Loki+Tempo, load, RSS | API работает; collector queues bounded, затем 0 | `storage-down.txt` |
| DB unavailable | stop PostgreSQL | readiness 503, edge 5xx, recovery smoke PASS | `db-down.txt` | | DB unavailable | stop PostgreSQL | readiness 503, edge 5xx, recovery smoke PASS | `db-down.txt` |
| JobsOverdue firing→resolved | stop worker, one queued job, restart | metric 1 → alert firing → 0 → no alerts | `track2/overdue-alert.txt` | | P0 worker-down 15m | `scripts/lab6_ttr_worker_down.py` | ratio5 MISSING первые 90s, затем растёт до 1 с 330s; FastBurn firing, JobsOverdue/QueueOldest firing, recovery | `checks/ttr-worker-15m.txt` |
| Регрессия lab5 | `make test-attachments`, `test-presign`, `test-idempotency`, `test-queue`, `test-faults`, `test-persistence`, `test-failover`, `test-lb-readiness`, `make integration-test`, `make lint`, `make load`, `make test-track2` | PASS | `evidence/lab6/regression/` | | Регрессия lab5 | `make test-attachments`, `test-presign`, `test-idempotency`, `test-queue`, `test-faults`, `test-persistence`, `test-failover`, `test-lb-readiness`, `make integration-test`, `make lint`, `make load`, `make test-track2` | PASS | `evidence/lab6/regression/` |
| Track 2: TTD/TTR, burst, false-positive | `python3 scripts/lab6_track2_full.py` | warmup 840 ops/0 failed; burst без page; sustained TTD 3m35s (slow) / 5m15s (fast); TTR 15m17s; residual TTR page в FP-окне зафиксирован | `evidence/lab6/track2/full/` (summary, phases, alerts, snapshots, ttd-ttr) | | Track 2: правила/исправления | `promtool check rules`, `make test-observability` | PASS | `checks/static.txt`, `infra/prometheus/rules/` |
| Track 2: rules/openAPI guard | `make test-slo` | promtool rules validate; short alert smoke PASS | `evidence/lab6/track2/burst-alerts.csv` | | Track 2: full run | `scripts/lab6_track2_full.py --warmup 3600 --settle 3600` | burst 0 page; API TTD 5:00/5:20; TTR JobsOverdue 2:46, QueueHigh 12:17; FP 0 | `checks/alert-audit.txt`, `track2/full/` |
## Track 2: гипотеза, методика, результаты
**Гипотеза.** При 0.2 req/s и 20% uploads 2-минутная пауза PostgreSQL не
должна вызывать page; 15-минутная остановка должна дать FastBurn/SlowBurn;
остановка worker должна дать JobsOverdue/queue-age раньше, чем TTR burn.
**Методика.** `scripts/lab6_track2_full.py`: warmup 60m, baseline 20m, burst
2m PG pause, пауза 60m, sustained 15m PG stop, resolution 60m, TTR worker
15m, false-positive 20m. Инъекции и restore записываются в `phases.json`;
алерты — `alerts.csv`; снимки — `snapshots/`.
**Результаты.** Burst: 0 page. Sustained (injection 11:29:51Z): FastBurn firing
11:34:51Z — TTD **5:00**; SlowBurn 11:35:11Z — **5:20**. После restore
11:44:55Z FastBurn resolved 11:49:30Z (**4:35**), SlowBurn resolved 12:13:32Z
(**28:37**). TTR: JobsOverdue firing 12:55:03Z (+**2:46**), QueueHigh
13:04:34Z (+**12:17**). Critical fired 13:07:29Z, через **12 s после
записанного restore** 13:07:17Z, поэтому это не доказательство обнаружения
до восстановления; injection записан после остановки worker. В полном TTR
сценарии принято 20 задач, 160 получили 429; FastBurn не сработал, отдельный
15m worker-down его подтверждает. False-positive: 20m без новых firing.
**Ограничения.** 6h warmup не выполнялся; slow TTD и реальный 7-дневный
бюджет не измерены. API SLO request-based; перевод бюджета в минуты зависит
от трафика. Два разобранных отказа: PostgreSQL (`db-availability.md`) и
worker/queue (`queue-lag.md`), evidence — `db-down.txt`,
`checks/ttr-worker-15m.txt`, `track2/full/`.
## Ограничения ## Ограничения
@@ -137,12 +181,27 @@ Warmup: 840 операций, 0 failed; burst не пейджил; sustained о
(lab7); Grafana admin — локальный secret, остальные интерфейсы только loopback. (lab7); Grafana admin — локальный secret, остальные интерфейсы только loopback.
- SDK queue drops не имеют полного публичного счётчика в Go SDK; наблюдаются - SDK queue drops не имеют полного публичного счётчика в Go SDK; наблюдаются
Collector `otelcol_*` и app export failures, граница описана в runbook. Collector `otelcol_*` и app export failures, граница описана в runbook.
- Полный 6h slow-burn live-прогон не заявляется; 30-дневная политика не - Полный 6h slow-burn live-прогон не заявляется. Множители 14.4×/6× для 7d
является измеренным фактом. Slow-burn alert проверен на 30m/6h окнах в **менее чувствительны**, чем рекомендации SRE для 30d: за 1h/6h они расходуют
полном прогоне, но не на 30-дневном retention. 8.6%/21.4% семидневного бюджета. Выбор обоснован малым трафиком и шумом,
- False-positive окно после TTR не было «чистым»: остаточный 1h TTR-бюджет а не «консервативностью».
дал короткие `TTRErrorBudgetFastBurn` firing до `23:02:52Z`; это - False-positive: в завершающей 20-минутной фазе **не было новых firing**
зафиксировано как residual, а не как новый инцидент. после восстановления. Это ограниченное наблюдение, а не универсальная
оценка FP.
- Сессия загрузчика живёт 3600 s; harness обновляет её за 10 минут до TTL. - Сессия загрузчика живёт 3600 s; harness обновляет её за 10 минут до TTL.
Ранний прогон без refresh упал на 401 после 60 минут — сохранён как - TTR-фаза намеренно перегружает admission: 20 uploads accepted, остальные
`track2/aborted-warmup-401/`. 160 получили 429; 429 не входят в API/TTR SLI, `failures_by_reason`
сохраняет причины.
- SLI API использует backend `api_backend`; `/health/*` вынесен в
`api_health` и не входит ни в numerator, ни в denominator.
- TTR SLI event-based: если новые задания перестали поступать, burn-rate
может погаснуть, хотя backlog остаётся; для этого служат `JobsOverdue`
и queue-age alerts. Это наблюдалось отдельно.
- В `MarkTTRMissed` отметка в БД и экспорт счётчика не транзакционны:
падение relay между ними может потерять один инкремент; в текущем стенде
это не проявлялось.
- `alerts.csv` ключует алерт по `alertname + labels` и пишет pending→firing
и resolved только при исчезновении; polling 5 s. В текущем full CSV колонки
labels ещё нет (формат снят до её добавления), поэтому `checks/alert-audit.txt`
для этого файла группирует по имени; это явное ограничение, labels не
восстанавливаются догадками.
+4 -5
View File
@@ -1,4 +1,4 @@
# Lab6 stand (lab5 base, telemetry to be added): API replicas behind HAProxy, PostgreSQL, Redis, SeaweedFS S3, # Lab6 stand (lab5 base + OTel profile): API replicas behind HAProxy, PostgreSQL, Redis, SeaweedFS S3,
# a durable RabbitMQ broker, one outbox relay and a separate image worker. # a durable RabbitMQ broker, one outbox relay and a separate image worker.
# #
# cp -n .env.example .env # cp -n .env.example .env
@@ -467,9 +467,8 @@ services:
# --- Lab6 telemetry profile ------------------------------------------------ # --- Lab6 telemetry profile ------------------------------------------------
# Start with: docker compose --profile telemetry up -d --build # Start with: docker compose --profile telemetry up -d --build
otel-collector: otel-collector:
# The manifest-list digest resolves to linux/386 on this Docker Desktop; # Manifest-list digest: Docker selects the architecture automatically.
# pin the arm64 child digest and keep the platform explicit. On amd64 set # Override OTEL_COLLECTOR_IMAGE only for a registry mirror.
# OTEL_COLLECTOR_IMAGE/PLATFORM to the amd64 child digest.
image: ${OTEL_COLLECTOR_IMAGE:-otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b} image: ${OTEL_COLLECTOR_IMAGE:-otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b}
logging: logging:
driver: json-file driver: json-file
@@ -503,7 +502,7 @@ services:
command: command:
- --config.file=/etc/prometheus/prometheus.yml - --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus - --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d - --storage.tsdb.retention.time=10d
- --storage.tsdb.retention.size=2GB - --storage.tsdb.retention.size=2GB
- --web.enable-lifecycle - --web.enable-lifecycle
volumes: volumes:
View File
+11 -6
View File
@@ -11,12 +11,17 @@
upload trace; `trace-retry.txt` — attempt=2 trace after a transient fault; upload trace; `trace-retry.txt` — attempt=2 trace after a transient fault;
traces include API, relay `job.publish`, worker `job.process`, S3 and DB traces include API, relay `job.publish`, worker `job.process`, S3 and DB
child spans. child spans.
- Track 2 evidence is generated by `scripts/lab6_track2.py`; raw CSV/JSON and - Track 2 evidence is generated by `scripts/lab6_track2_full.py`; raw CSV/JSON
`plan.md` belong in `track2/`. The full run needs the documented 3-hour window; belong in `track2/`. `/health/*` is routed to a separate HAProxy backend and
short runs are explicitly not evidence of the 6h slow-burn window. is excluded from `api_backend` SLI. TTR SLI uses two sources: good events
- `storage-down.txt`, `db-down.txt` — telemetry-storage and PostgreSQL from the time-to-ready histogram bucket `le="30.0"` and bad events from the
outage observations (API continues; bounded Collector queues). separate `messenger_jobs_ttr_missed_total` counter.
- `track2/overdue-alert.txt` — JobsOverdue firing/resolved. - Полный live-прогон Track 2 выполнен 2026-11-06; результаты — в
`track2/full/` и `track2/ttd-ttr.md`. Старые короткие прогоны не
используются как доказательства текущего результата.
- `storage-down.txt` / `storage-down-series.json` — telemetry-storage outage
observations over time (API continues; bounded Collector queues).
- `db-down.txt` — PostgreSQL outage: API/LB responds 5xx, never 401.
- `regression/` is for the lab5 regression commands (`test-queue`, - `regression/` is for the lab5 regression commands (`test-queue`,
`test-faults`, `test-attachments`, `test-presign`, `test-idempotency`, `test-faults`, `test-attachments`, `test-presign`, `test-idempotency`,
`test-lb-readiness`, persistence/failover). `test-lb-readiness`, persistence/failover).
+77
View File
@@ -0,0 +1,77 @@
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"firing": {},
"pending_not_fired": {
"APISLIMissing": 1
},
"page": 0,
"ticket": 0
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"firing": {},
"pending_not_fired": {
"APISLIMissing": 2
},
"page": 0,
"ticket": 0
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"firing": {
"APIErrorBudgetFastBurn": 1,
"APIErrorBudgetSlowBurn": 1,
"QueueMetricsStale": 1
},
"pending_not_fired": {},
"page": 1,
"ticket": 1
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"firing": {
"JobsOverdue": 1,
"QueueOldestJobAgeCritical": 1,
"QueueOldestJobAgeHigh": 1
},
"pending_not_fired": {},
"page": 1,
"ticket": 0
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
}
]
+11
View File
@@ -0,0 +1,11 @@
# Alert episodes by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeCritical': 1, 'QueueOldestJobAgeHigh': 1} | {} |
| false-positive | 0 | 0 | {} | {} |
+12
View File
@@ -0,0 +1,12 @@
# Alert episodes by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeCritical': 1, 'QueueOldestJobAgeHigh': 1} | {} |
| false-positive | 0 | 0 | {} | {} |
+57
View File
@@ -0,0 +1,57 @@
UTC 2026-11-06T13:34:14Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make test
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
$ make test-observability
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_evidence.py
PASS: evidence has no obvious secrets, signed URLs or bearer tokens
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_verify.py --base-url "http://localhost:8080"
NOTE: created request_id=lab6-verify-015163e6e039495c91258218e57f1a94
PASS: lab6 strict telemetry gate (signals, trace/log correlation, labels, Grafana, rules, privacy sentinels)
$ make test-slo
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_track2.py --base-url "http://localhost:8080"
Container mtusi-messenger-lab6-postgres-1 Paused
Container mtusi-messenger-lab6-postgres-1 Unpaused
{
"base_url": "http://localhost:8080",
"rate": 0.5,
"duration_s": 138.01,
"scheduled": 70,
"counters": {
"accepted": 3,
"ready": 3,
"failed": 61,
"messages": 56,
"uploads": 3,
"dropped": 0
},
"failures": 61,
"failures_by_reason": {
"http_503": 61
},
"failure_samples": [
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503"
],
"latency_ms": {
"p50": 6.7,
"p95": 10.8,
"p99": 10.8
},
"ttr_ms": {
"p50": 633.4,
"p95": 635.1,
"p99": 635.1
}
}
alert timeline: /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2/burst-alerts.csv
track2 evidence: /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2 load_rc= 1 alerts_rc= 0
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 655.01,
"scheduled": 132,
"counters": {
"accepted": 27,
"ready": 27,
"failed": 0,
"messages": 105,
"uploads": 27,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 6.2,
"p95": 9.2,
"p99": 11.9
},
"ttr_ms": {
"p50": 646.2,
"p95": 1265.8,
"p99": 1268.0
}
}
@@ -0,0 +1,29 @@
UTC 2026-11-05T22:39:30Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ docker compose exec prometheus wget -qO- http://otel-collector:8888/metrics
# HELP otelcol_exporter_queue_capacity Fixed capacity of the retry queue (in batches). [Alpha]
# TYPE otelcol_exporter_queue_capacity gauge
otelcol_exporter_queue_capacity{data_type="logs",exporter="otlp_http/loki"} 1.048576e+07
otelcol_exporter_queue_capacity{data_type="traces",exporter="otlp_grpc/tempo"} 1.048576e+07
# HELP otelcol_exporter_queue_size Current size of the retry queue (in batches). [Alpha]
# TYPE otelcol_exporter_queue_size gauge
otelcol_exporter_queue_size{data_type="logs",exporter="otlp_http/loki"} 0
otelcol_exporter_queue_size{data_type="traces",exporter="otlp_grpc/tempo"} 0
# HELP otelcol_receiver_failed_log_records The number of log records that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_log_records counter
otelcol_receiver_failed_log_records{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_failed_metric_points The number of metric points that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_metric_points counter
otelcol_receiver_failed_metric_points{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_failed_spans The number of spans that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_spans counter
otelcol_receiver_failed_spans{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_log_records Number of log records that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_log_records counter
otelcol_receiver_refused_log_records{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_metric_points Number of metric points that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_metric_points counter
otelcol_receiver_refused_metric_points{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_spans Number of spans that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_spans counter
otelcol_receiver_refused_spans{receiver="otlp",transport="http"} 0
+6
View File
@@ -0,0 +1,6 @@
UTC 2026-11-06T13:33:57Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make integration-test
go test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis
ok mtusi-messenger/internal/storage/postgres 8.234s
ok mtusi-messenger/internal/storage/redis 1.292s
+84
View File
@@ -0,0 +1,84 @@
UTC 2026-11-06T13:33:34Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 scripts/check_s3_creds.py
PASS: S3 app identity matches .env; admin stays in s3.json/s3-init
$ make unit-test
env -u APP_ENV -u SERVER_HOST -u SERVER_PORT -u SERVER_READ_HEADER_TIMEOUT -u SERVER_READ_TIMEOUT -u SERVER_SHUTDOWN_TIMEOUT -u SERVER_MAX_BODY_BYTES -u LOG_LEVEL -u LOG_FORMAT -u POSTGRES_HOST -u POSTGRES_PORT -u POSTGRES_DATABASE -u POSTGRES_USER -u POSTGRES_PASSWORD -u POSTGRES_SSL_MODE -u POSTGRES_MAX_CONNS -u POSTGRES_MIN_CONNS -u POSTGRES_MAX_CONN_LIFETIME -u POSTGRES_MAX_CONN_IDLE_TIME -u POSTGRES_CONNECT_TIMEOUT -u POSTGRES_QUERY_TIMEOUT -u REDIS_ENABLED -u REDIS_HOST -u REDIS_PORT -u REDIS_PASSWORD -u REDIS_DB -u REDIS_MAX_RETRIES -u REDIS_DIAL_TIMEOUT -u REDIS_READ_TIMEOUT -u REDIS_WRITE_TIMEOUT -u REDIS_POOL_SIZE -u CACHE_ENABLED -u CACHE_CHAT_LIST_TTL -u CACHE_LOCK_TTL -u CACHE_LOCK_WAIT_TIMEOUT -u SESSION_TTL_SECONDS -u IDEMPOTENCY_TTL_SECONDS -u API_REPLICAS -u API_CPU_LIMIT -u API_MEM_LIMIT -u POSTGRES_MAX_CONNS -u POSTGRES_CPU_LIMIT -u POSTGRES_MEM_LIMIT -u LB_STATS_PORT -u S3_ENDPOINT -u S3_PUBLIC_ENDPOINT -u S3_PORT -u S3_REGION -u S3_BUCKET -u S3_ACCESS_KEY_ID -u S3_SECRET_ACCESS_KEY -u MAX_UPLOAD_BYTES -u MAX_IMAGE_PIXELS -u S3_PRESIGN_TTL -u S3_SWEEP_INTERVAL -u S3_SWEEP_GRACE -u BROKER_USER -u BROKER_PASSWORD -u BROKER_VHOST -u BROKER_URL -u BROKER_EXCHANGE -u BROKER_QUEUE -u BROKER_DLX -u BROKER_DLQ -u BROKER_MANAGEMENT_PORT -u BROKER_CPU_LIMIT -u BROKER_MEM_LIMIT -u WORKER_CONCURRENCY -u WORKER_PREFETCH -u WORKER_CPU_LIMIT -u WORKER_MEM_LIMIT -u WORKER_SHUTDOWN_TIMEOUT -u WORKER_HEALTH_PORT -u PROCESSING_PIPELINE_VERSION -u PROCESSING_MAX_ATTEMPTS -u PROCESSING_JOB_TIMEOUT -u PROCESSING_LEASE_TTL -u PROCESSING_HEARTBEAT -u PROCESSING_RETRY_BASE -u PROCESSING_RETRY_CAP -u OUTBOX_POLL_INTERVAL -u OUTBOX_CLAIM_TTL -u OUTBOX_BATCH -u OUTBOX_REAPER_INTERVAL -u OUTBOX_RECONCILE_AFTER -u OUTBOX_RETENTION -u RELAY_CPU_LIMIT -u RELAY_MEM_LIMIT -u RELAY_HEALTH_PORT -u STAGING_ORPHAN_GRACE -u STAGING_FAILED_RETENTION -u ADMISSION_MAX_PENDING_PER_USER -u ADMISSION_MAX_PENDING -u ADMISSION_MAX_STAGED_BYTES -u ADMISSION_MAX_CONCURRENT_UPLOADS -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_PROTOCOL -u OTEL_RESOURCE_ATTRIBUTES -u OTEL_METRIC_EXPORT_INTERVAL -u TELEMETRY_ENABLED -u PROMETHEUS_PORT -u LOKI_PORT -u TEMPO_PORT -u GRAFANA_PORT -u OTEL_COLLECTOR_CPU_LIMIT -u OTEL_COLLECTOR_MEM_LIMIT -u PROMETHEUS_CPU_LIMIT -u PROMETHEUS_MEM_LIMIT -u LOKI_CPU_LIMIT -u LOKI_MEM_LIMIT -u TEMPO_CPU_LIMIT -u TEMPO_MEM_LIMIT -u GRAFANA_CPU_LIMIT -u GRAFANA_MEM_LIMIT go test -race -shuffle=on -count=1 -timeout=5m ./...
? mtusi-messenger/cmd/jobctl [no test files]
? mtusi-messenger/cmd/messenger [no test files]
? mtusi-messenger/cmd/migrate [no test files]
? mtusi-messenger/cmd/relay [no test files]
? mtusi-messenger/cmd/s3init [no test files]
? mtusi-messenger/cmd/worker [no test files]
? mtusi-messenger/internal/broker [no test files]
ok mtusi-messenger/internal/config 1.747s
ok mtusi-messenger/internal/domain 2.759s
? mtusi-messenger/internal/failpoint [no test files]
ok mtusi-messenger/internal/health 2.400s
ok mtusi-messenger/internal/imagecheck 2.085s
ok mtusi-messenger/internal/imageproc 3.626s
ok mtusi-messenger/internal/logger 3.554s
? mtusi-messenger/internal/outbox [no test files]
ok mtusi-messenger/internal/platform/cache 4.833s
? mtusi-messenger/internal/platform/cache/mocks [no test files]
? mtusi-messenger/internal/platform/instanceid [no test files]
ok mtusi-messenger/internal/platform/objectstore 3.918s
ok mtusi-messenger/internal/platform/password 5.632s
ok mtusi-messenger/internal/platform/token 4.941s
ok mtusi-messenger/internal/service/attachment 5.544s
? mtusi-messenger/internal/service/attachment/mocks [no test files]
ok mtusi-messenger/internal/service/chat 5.919s
? mtusi-messenger/internal/service/chat/mocks [no test files]
ok mtusi-messenger/internal/service/message 6.281s
? mtusi-messenger/internal/service/message/mocks [no test files]
ok mtusi-messenger/internal/service/session 6.928s
? mtusi-messenger/internal/service/session/mocks [no test files]
ok mtusi-messenger/internal/service/user 7.266s
? mtusi-messenger/internal/service/user/mocks [no test files]
ok mtusi-messenger/internal/storage/postgres 7.689s
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
? mtusi-messenger/internal/storage/redis [no test files]
? mtusi-messenger/internal/storage/redis/mocks [no test files]
ok mtusi-messenger/internal/telemetry 8.058s
ok mtusi-messenger/internal/transport/rest 8.529s
? mtusi-messenger/internal/transport/rest/internal/oas [no test files]
? mtusi-messenger/internal/transport/rest/mocks [no test files]
ok mtusi-messenger/internal/worker 7.565s
? mtusi-messenger/tools/specgen [no test files]
$ make lint
/Users/vladislav/Projects/mtusi2026lab6/bin/golangci-lint run -v
level=info msg="golangci-lint has version 2.13.2 built with go1.27.1 from (unknown, modified: ?, mod sum: \"h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=\") on (unknown)"
level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab6 /Users/vladislav/Projects /Users/vladislav /Users /]"
level=info msg="[config_reader] Used config file .golangci.yml"
level=info msg="[config_reader] Module name \"mtusi-messenger\""
level=info msg="[goenv] Read go env for 5.452167ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]"
level=info msg="[loader] Using build tags: [integration]"
level=info msg="[loader] Go packages loading at mode 8767 (exports_file|types_sizes|compiled_files|deps|files|imports|name) took 328.172459ms"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 8.257709ms"
level=info msg="[linters_context/goanalysis] analyzers took 0s with no stages"
level=info msg="[runner/exclusion_rules] Skipped 15 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]"
level=info msg="[runner] Issues before processing: 894, after processing: 0"
level=info msg="[runner] Processors filtering stat (in/out): path_absoluter: 894/894, cgo: 894/894, exclusion_paths: 894/894, exclusion_rules: 305/6, filename_unadjuster: 894/894, invalid_issue: 894/894, nolint_filter: 6/0, path_relativity: 894/894, generated_file_filter: 894/305"
level=info msg="[runner] processing took 3.308334ms with stages: generated_file_filter: 1.592083ms, nolint_filter: 799.625µs, path_relativity: 567.333µs, exclusion_rules: 281.584µs, cgo: 27.917µs, invalid_issue: 16.916µs, path_absoluter: 10.542µs, filename_unadjuster: 6.208µs, sort_results: 3.876µs, max_same_issues: 625ns, exclusion_paths: 417ns, fixer: 292ns, max_from_linter: 208ns, source_code: 125ns, path_prettifier: 125ns, path_shortener: 124ns, max_per_file_from_linter: 84ns, severity-rules: 84ns, uniq_by_line: 83ns, diff: 83ns"
level=info msg="[runner] linters took 715.361458ms with stages: goanalysis_metalinter: 712.008375ms"
0 issues.
level=info msg="File cache stats: 0 entries of total size 0B"
level=info msg="Memory: 12 samples, avg is 83.2MB, max is 111.1MB"
level=info msg="Execution took 1.057716875s"
$ go vet ./...
$ promtool check rules
Checking /etc/prometheus/rules/alerts.yml
SUCCESS: 15 rules found
Checking /etc/prometheus/rules/slo.yml
SUCCESS: 10 rules found
$ promtool test rules
SUCCESS
$ docker compose config -q
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 775.03,
"scheduled": 156,
"counters": {
"accepted": 31,
"ready": 31,
"failed": 0,
"messages": 125,
"uploads": 31,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 7.7,
"p95": 10.5,
"p99": 12.4
},
"ttr_ms": {
"p50": 955.9,
"p95": 1265.6,
"p99": 1266.7
}
}
File diff suppressed because it is too large Load Diff
+16
View File
@@ -0,0 +1,16 @@
UTC 2026-11-05T22:44:18Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ student-tests/lab5_faults.py
permanent failure: failed/injected_failure, content 409, failed attachment not linkable, registry visible
replay: failed -> queued -> ready, one thumbnail
replay ready job: refused
replay older failed version while v2 queued: refused, state intact
v2 published after older replay refusal
replay of failed reprocess: queued projection restored, then ready at pipeline 2
transient exhaustion: attempts=5, retry_exhausted, four retries, DLQ message present
crash after first variant: redelivered, same three variants, attempts=2
crash after commit before ack: ready remains, redelivery is a no-op
crash after claim before side effect: requeued, attempts=2, ready
outbox gap: crash before publish recovered through the relay, outbox published, ready
lease expiry: paused worker, reaper requeued, stale attempt fenced, ready
PASS: lab5 level 4 fault injection
File diff suppressed because one or more lines are too long
+47
View File
@@ -0,0 +1,47 @@
UTC 2026-11-06T00:30:14Z
HEAD 935b228d0b55ac60d00cdc855218ec45e20f2530
$ /api/v1/rules (contains or vector(0))
or_vector_0= True
json_len= 12780
$ pre ALERTS []
$ stop worker
t=30s ratio5=MISSING ratio1h=MISSING missed_total=100 missed_inc5=0 bucket_count=10 overdue=0 oldest=12.610594 alerts=[]
t=60s ratio5=MISSING ratio1h=MISSING missed_total=100 missed_inc5=0 bucket_count=10 overdue=3 oldest=42.61288 alerts=[["JobsOverdue", "pending"]]
t=90s ratio5=MISSING ratio1h=MISSING missed_total=106 missed_inc5=6.2756181818181815 bucket_count=10 overdue=9 oldest=72.614253 alerts=[["JobsOverdue", "pending"]]
t=120s ratio5=0.923076923076923 ratio1h=0.9230769230769231 missed_total=112 missed_inc5=12.435503224838758 bucket_count=10 overdue=15 oldest=102.611122 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "pending"]]
t=150s ratio5=0.9473684210526316 ratio1h=0.9473684210526315 missed_total=118 missed_inc5=18.549592785748487 bucket_count=10 overdue=23 oldest=132.508928 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "pending"]]
t=180s ratio5=0.962962962962963 ratio1h=0.962962962962963 missed_total=126 missed_inc5=26.679560826021273 bucket_count=10 overdue=29 oldest=162.508223 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=210s ratio5=0.9696969696969697 ratio1h=0.9696969696969698 missed_total=132 missed_inc5=32.73157721245076 bucket_count=10 overdue=35 oldest=192.509517 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=240s ratio5=0.9743589743589745 ratio1h=0.9743589743589743 missed_total=138 missed_inc5=38.77170399329681 bucket_count=10 overdue=43 oldest=222.509683 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=270s ratio5=0.9787234042553192 ratio1h=0.9787234042553192 missed_total=146 missed_inc5=46.84163777134747 bucket_count=10 overdue=49 oldest=252.509732 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=300s ratio5=0.9811320754716981 ratio1h=0.9811320754716981 missed_total=152 missed_inc5=52.8994672752366 bucket_count=10 overdue=55 oldest=282.510069 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=330s ratio5=1 ratio1h=0.9829645869209094 missed_total=158 missed_inc5=59.00325196084083 bucket_count=MISSING overdue=63 oldest=312.51145 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=360s ratio5=1 ratio1h=0.9849866155016431 missed_total=166 missed_inc5=67.14185921911984 bucket_count=MISSING overdue=69 oldest=342.509047 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=390s ratio5=1 ratio1h=0.9862112005033712 missed_total=172 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=75 oldest=372.509037 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=420s ratio5=1 ratio1h=0.9872508295058324 missed_total=178 missed_inc5=67.14185921911984 bucket_count=MISSING overdue=83 oldest=402.510244 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=450s ratio5=1 ratio1h=0.9884172689944903 missed_total=186 missed_inc5=69.15254237288136 bucket_count=MISSING overdue=89 oldest=432.509801 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=480s ratio5=1 ratio1h=0.9891595307016704 missed_total=192 missed_inc5=67.11750648294097 bucket_count=MISSING overdue=95 oldest=462.508192 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=510s ratio5=1 ratio1h=0.9898124841753306 missed_total=198 missed_inc5=67.11864406779661 bucket_count=MISSING overdue=103 oldest=492.508813 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=540s ratio5=1 ratio1h=0.9905707750128784 missed_total=206 missed_inc5=69.15207354526409 bucket_count=MISSING overdue=109 oldest=522.508408 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=570s ratio5=1 ratio1h=0.9910685528663303 missed_total=212 missed_inc5=67.14185921911982 bucket_count=MISSING overdue=115 oldest=552.510401 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=600s ratio5=1 ratio1h=0.9915177473866992 missed_total=218 missed_inc5=67.14254226080469 bucket_count=MISSING overdue=123 oldest=582.406662 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=630s ratio5=1 ratio1h=0.9920498972652931 missed_total=226 missed_inc5=69.17622643684787 bucket_count=MISSING overdue=129 oldest=612.40958 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=660s ratio5=1 ratio1h=0.9924066715178286 missed_total=232 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=135 oldest=642.40658 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=690s ratio5=1 ratio1h=0.9927327859192547 missed_total=238 missed_inc5=67.14276994445463 bucket_count=MISSING overdue=143 oldest=672.408057 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=720s ratio5=1 ratio1h=0.9931268165094485 missed_total=246 missed_inc5=69.17528814559364 bucket_count=MISSING overdue=149 oldest=702.408433 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=750s ratio5=1 ratio1h=0.9933950961225724 missed_total=252 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=155 oldest=732.408746 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=780s ratio5=1 ratio1h=0.993643194764043 missed_total=258 missed_inc5=67.14185921911982 bucket_count=MISSING overdue=163 oldest=762.409049 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=810s ratio5=1 ratio1h=0.9939467049022863 missed_total=266 missed_inc5=69.17622643684787 bucket_count=MISSING overdue=169 oldest=792.41206 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=840s ratio5=1 ratio1h=0.9941557453893992 missed_total=272 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=175 oldest=822.407542 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=870s ratio5=1 ratio1h=0.9943508304157103 missed_total=278 missed_inc5=67.11932663722003 bucket_count=MISSING overdue=183 oldest=852.407439 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=900s ratio5=1 ratio1h=0.9945917759853372 missed_total=286 missed_inc5=69.15230795827812 bucket_count=MISSING overdue=189 oldest=882.407004 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=930s ratio5=1 ratio1h=0.9947592532907682 missed_total=292 missed_inc5=67.11841654774052 bucket_count=MISSING overdue=195 oldest=912.40742 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "firing"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
$ start worker
recovery t=30s ratio5=1 ratio1h=0.8602719300487442 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=60s ratio5=0.46027848712991326 ratio1h=0.6701622041415539 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=120s ratio5=0.28651555183796223 ratio1h=0.5530347475575486 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=180s ratio5=0.19892599842282524 ratio1h=0.4741651045063767 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=240s ratio5=0.14269663063401883 ratio1h=0.4150096929787228 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=300s ratio5=0.09905644731015488 ratio1h=0.3703642198471703 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetSlowBurn", "firing"]]
+28
View File
@@ -0,0 +1,28 @@
UTC 2026-11-05T22:40:16Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ load + stop worker
Container mtusi-messenger-lab6-worker-1 Stopping
Container mtusi-messenger-lab6-worker-1 Stopped
$ ttr ratio during outage
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"slo:job_ttr_bad_ratio:5m"},"value":[1793918511.951,"0.6265581574633149"]}]}}
$ alerts during outage
[('TTRErrorBudgetFastBurn', 'firing')]
$ start worker
Container mtusi-messenger-lab6-seaweedfs-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Healthy
Container mtusi-messenger-lab6-seaweedfs-1 Healthy
Container mtusi-messenger-lab6-migrate-1 Starting
Container mtusi-messenger-lab6-s3-init-1 Starting
Container mtusi-messenger-lab6-migrate-1 Started
Container mtusi-messenger-lab6-s3-init-1 Started
Container mtusi-messenger-lab6-broker-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Waiting
Container mtusi-messenger-lab6-migrate-1 Waiting
Container mtusi-messenger-lab6-s3-init-1 Waiting
Container mtusi-messenger-lab6-migrate-1 Exited
Container mtusi-messenger-lab6-postgres-1 Healthy
Container mtusi-messenger-lab6-s3-init-1 Exited
Container mtusi-messenger-lab6-broker-1 Healthy
Container mtusi-messenger-lab6-worker-1 Starting
Container mtusi-messenger-lab6-worker-1 Started
+78 -10
View File
@@ -1,10 +1,78 @@
Collector down scenario (local, 2026-11-04) UTC 2026-11-06T13:51:07Z
========================================== HEAD 255f601a9946187c4c330828426c6458a89aad2b
$ docker compose --env-file .env stop otel-collector pre_alerts= []
$ curl up{job=otel-collector} $ docker compose ps -a
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"up","instance":"otel-collector:8889","job":"otel-collector"},"value":[1793801606.395,"0"]}]}} NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
$ curl /api/v1/alerts mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
{"status":"success","data":{"alerts":[{"labels":{"alertname":"CollectorDroppedTelemetry","severity":"warning"},"annotations":{"runbook":"infra/runbooks/telemetry-backend-down.md","summary":"Collector is dropping or refusing telemetry"},"state":"firing","activeAt":"2026-11-04T14:07:53.187213033Z","value":"1.380952380952381e-01"},{"labels":{"alertname":"TelemetryCollectorDown","component":"telemetry","instance":"otel-collector:8889","job":"otel-collector","severity":"warning"},"annotations":{"runbook":"infra/runbooks/telemetry-backend-down.md","summary":"OTel Collector is unavailable; application keeps running"},"state":"pending","activeAt":"2026-11-04T14:11:28.187213033Z","value":"0e+00"}]}} mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
$ make test mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 25 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080" mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 19 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Up 5 hours 4317-4318/tcp, 55679/tcp
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 46 seconds ago Up 45 seconds (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 17 minutes ago Up 17 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 19 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 17 minutes ago Up 17 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
$ docker compose stop otel-collector
down t=30s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=60s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=90s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=120s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=150s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=180s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=210s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=240s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=270s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=300s up=0 api_p99=MISSING api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
$ docker compose ps -a (down)
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 30 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 24 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Exited (0) 5 minutes ago
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 5 minutes ago Up 5 minutes (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 22 minutes ago Up 22 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 24 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 22 minutes ago Up 22 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
$ docker compose start otel-collector
recovery t=30s up=1 api_p99=0.02425 api_error_5m=0 queue_logs=0 queue_traces=0 alerts=[]
telemetry alerts inactive
load_exit= 0
load_summary= {"counters": {"accepted": 27, "ready": 27, "failed": 0, "messages": 105, "uploads": 27, "dropped": 0}, "failures": 0, "failures_by_reason": {}, "duration_s": 655.01}
$ docker compose ps -a (final)
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 35 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 30 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Up 5 minutes 4317-4318/tcp, 55679/tcp
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 11 minutes ago Up 11 minutes (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 28 minutes ago Up 28 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 30 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 28 minutes ago Up 28 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
+55 -16
View File
@@ -1,16 +1,55 @@
PostgreSQL unavailable (local, 2026-11-04) UTC 2026-11-05T22:39:36Z
=========================================== HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ docker compose --env-file .env stop postgres $ docker compose stop postgres
Container mtusi-messenger-lab6-postgres-1 Stopped Container mtusi-messenger-lab6-postgres-1 Stopping
$ load during outage: bootstrap could not get a ready API through the LB Container mtusi-messenger-lab6-postgres-1 Stopped
(readiness 503; HAProxy removed the DB-dependent replicas) $ direct api request (stopped DB)
$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m])) --2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
{"value":"0.017931433566648815"} Connecting to 127.0.0.1:8080... connected.
$ curl /health/ready HTTP request sent, awaiting response...
503 HTTP/1.1 503 Service Unavailable
$ docker compose --env-file .env start postgres Content-Type: application/json; charset=utf-8
$ make test after restore X-Instance-Id: 32a0ab2f10f0
PASS: lab6 public API scenario X-Request-Id: 68f42379-8fe8-4655-a99e-bd3a65975cc7
Result: DB outage is visible as edge 5xx/readiness loss; after PostgreSQL Date: Thu, 05 Nov 2026 22:39:39 GMT
returns, the public smoke passes. No accepted upload is lost (queue/relay Content-Length: 116
evidence from the worker scenario remains zero-loss). 2026-11-05 22:39:39 ERROR 503: Service Unavailable.
$ start postgres and immediate direct request
--2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: 5be628de-cfd2-4aeb-aa3f-4ca045a8d50a
Date: Thu, 05 Nov 2026 22:39:39 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
0K {"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"} 100% 61.9M=0s
2026-11-05 22:39:39 (61.9 MB/s) - written to stdout [153/153]
$ wait recovery
--2026-11-05 22:39:51-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: f8053440-cb37-49ff-ba79-eb8c4ceff53b
Date: Thu, 05 Nov 2026 22:39:51 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
{"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"}
0K 100% 72.8M=0s
2026-11-05 22:39:51 (72.8 MB/s) - written to stdout [153/153]
+6 -7
View File
@@ -1,16 +1,15 @@
messenger_http_server_requests_total: 33 http_server_request_duration_seconds_count: 40
http_server_request_duration_seconds_bucket: 396 http_server_request_duration_seconds_bucket: 480
messenger_jobs_accepted_total: 2
messenger_jobs_processed_total: 1 messenger_jobs_processed_total: 1
messenger_jobs_ready_within_budget_total: 1 messenger_jobs_accepted_total: 2
messenger_job_duration_seconds_bucket: 11 messenger_job_duration_seconds_bucket: 11
messenger_job_time_to_ready_seconds_bucket: 10 messenger_job_time_to_ready_seconds_bucket: 10
messenger_jobs_overdue: 1 messenger_jobs_overdue: 1
messenger_queue_oldest_job_age_seconds: 1
messenger_outbox_oldest_unpublished_age_seconds: 1
messenger_worker_busy: 1 messenger_worker_busy: 1
messenger_db_pool_used: 4 messenger_db_pool_used: 4
messenger_queue_oldest_job_age_seconds: 1
messenger_outbox_oldest_unpublished_age_seconds: 1
messenger_process_cpu_seconds_total: 4 messenger_process_cpu_seconds_total: 4
rabbitmq_queue_messages_ready: 2 rabbitmq_queue_messages_ready: 2
otelcol_exporter_queue_size: 2 otelcol_exporter_queue_size: 2
haproxy_frontend_http_responses_total: 12 haproxy_backend_http_responses_total: 12
+23 -4
View File
@@ -1,5 +1,5 @@
# Actual PromQL used by the provisioned dashboards and alert rules. # Actual PromQL used by the provisioned dashboards and alert rules.
sum(rate(messenger_http_server_requests_total[5m])) sum(rate(http_server_request_duration_seconds_count[5m]))
slo:api_error_ratio:5m slo:api_error_ratio:5m
histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m]))) histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))
histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m]))) histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))
@@ -11,7 +11,7 @@ histogram_quantile(0.50, sum by (le) (rate(messenger_job_duration_seconds_bucket
histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m]))) histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))
histogram_quantile(0.99, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m]))) histogram_quantile(0.99, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))
histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m]))) histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))
slo:ttr_bad_ratio:5m slo:job_ttr_bad_ratio:5m
max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})
max(messenger_queue_oldest_job_age_seconds) max(messenger_queue_oldest_job_age_seconds)
max(messenger_jobs_overdue) max(messenger_jobs_overdue)
@@ -25,5 +25,24 @@ sum(rate(messenger_db_pool_empty_acquire_total[5m]))
max(messenger_process_cpu_seconds_total) max(messenger_process_cpu_seconds_total)
max(messenger_process_memory_usage_bytes) max(messenger_process_memory_usage_bytes)
otelcol_exporter_queue_size otelcol_exporter_queue_size
otelcol_exporter_send_failed_spans sum(rate(otelcol_receiver_failed_spans[5m]))
sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[5m])) sum(rate(otelcol_receiver_failed_metric_points[5m]))
sum(rate(otelcol_receiver_failed_log_records[5m]))
sum(rate(otelcol_receiver_refused_spans[5m]))
sum(rate(otelcol_receiver_refused_metric_points[5m]))
sum(rate(otelcol_receiver_refused_log_records[5m]))
otelcol_exporter_queue_capacity
sum(rate(haproxy_backend_http_responses_total{proxy="api_backend",code=~"5.."}[5m]))
slo:job_ttr_bad_ratio:1h
slo:job_ttr_bad_ratio:30m
slo:api_error_ratio:1h
slo:api_error_ratio:6h
slo:api_error_ratio:30m
slo:api_error_ratio:7d
slo:api_budget_remaining:7d
(sum(rate(messenger_jobs_ttr_missed_total[5m])) or vector(0)) / clamp_min((sum(rate(messenger_job_time_to_ready_seconds_bucket{le="30.0"}[5m])) or vector(0)) + (sum(rate(messenger_jobs_ttr_missed_total[5m])) or vector(0)), 0.001)
sum(rate(messenger_db_pool_empty_acquire_wait_seconds_total[5m])) / clamp_min(sum(rate(messenger_db_pool_empty_acquire_total[5m])), 1e-9)
sum by (service_name) (rate(messenger_process_cpu_seconds_total[5m]))
sum by (service_name) (messenger_process_memory_usage_bytes) / clamp_min(sum by (service_name) (messenger_process_memory_limit_bytes), 1)
sum by (http_route,http_response_status_code) (rate(http_server_request_duration_seconds_count[5m]))
sum(rate(haproxy_backend_http_responses_total{proxy="api_backend"}[5m]))
+866
View File
@@ -0,0 +1,866 @@
[
{
"phase": "baseline",
"utc": "2026-11-06T14:16:36Z",
"api_memory": "19447808",
"collector_rss": "235225088",
"collector_heap": "49942672",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.860972126582021",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3324321482240321",
"api_error_5m": "0",
"api_p99": "0.02352142857142857",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.92%",
"mtusi-messenger-lab6-api-2 187.9MiB / 256MiB 73.40%",
"mtusi-messenger-lab6-otel-collector-1 72.32MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:16:48Z",
"api_memory": "198602752",
"collector_rss": "235229184",
"collector_heap": "52750392",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.8270668530102165",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.342609804746333",
"api_error_5m": "0",
"api_p99": "0.07924999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.9MiB / 256MiB 73.78%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.46%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:00Z",
"api_memory": "197406720",
"collector_rss": "235229184",
"collector_heap": "55751416",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.906714773043249",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424866565842212",
"api_error_5m": "0",
"api_p99": "0.07849999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.84%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.50%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:12Z",
"api_memory": "198733824",
"collector_rss": "235233280",
"collector_heap": "32717896",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.910172330771997",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424913020773284",
"api_error_5m": "0",
"api_p99": "0.07900000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.91%",
"mtusi-messenger-lab6-api-2 188.3MiB / 256MiB 73.56%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:25Z",
"api_memory": "198746112",
"collector_rss": "235233280",
"collector_heap": "35503232",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.7575287977999405",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3289239439676366",
"api_error_5m": "0",
"api_p99": "0.0795000000000001",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 187.5MiB / 256MiB 73.26%",
"mtusi-messenger-lab6-api-2 189.1MiB / 256MiB 73.88%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:37Z",
"api_memory": "198746112",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.08075000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.01%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "down-start",
"utc": "2026-11-06T14:17:39Z",
"api_memory": "196960256",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.07874999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.02%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:17:51Z",
"api_memory": "196960256",
"collector_rss": "235249664",
"collector_heap": "44557832",
"queue_logs": "5287",
"queue_traces": "17234",
"sent_spans": "4.665988470668022",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.36283485927433035",
"api_error_5m": "0",
"api_p99": "0.07950000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.82%",
"mtusi-messenger-lab6-api-2 187.7MiB / 256MiB 73.33%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:03Z",
"api_memory": "197980160",
"collector_rss": "235249664",
"collector_heap": "47533792",
"queue_logs": "6807",
"queue_traces": "22823",
"sent_spans": "4.516770034689609",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.0774999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.1MiB / 256MiB 73.48%",
"mtusi-messenger-lab6-api-2 188MiB / 256MiB 73.43%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:15Z",
"api_memory": "197365760",
"collector_rss": "235253760",
"collector_heap": "50792392",
"queue_logs": "7567",
"queue_traces": "26898",
"sent_spans": "4.411679931095053",
"send_failed_spans": "0.11868470222008212",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3730090641202581",
"api_error_5m": "0",
"api_p99": "0.07625000000000012",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.58%",
"mtusi-messenger-lab6-api-2 188.7MiB / 256MiB 73.71%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:27Z",
"api_memory": "197820416",
"collector_rss": "235257856",
"collector_heap": "55635944",
"queue_logs": "10262",
"queue_traces": "35035",
"sent_spans": "4.065812586046701",
"send_failed_spans": "0.34588230506819306",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3967473499311627",
"api_error_5m": "0",
"api_p99": "0.07549999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.14MiB / 256MiB 37.16%",
"mtusi-messenger-lab6-api-2 78.77MiB / 256MiB 30.77%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:39Z",
"api_memory": "100081664",
"collector_rss": "235257856",
"collector_heap": "58521320",
"queue_logs": "14374",
"queue_traces": "47240",
"sent_spans": "3.9247080213976298",
"send_failed_spans": "0.4002727281978568",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3968805864334682",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.32MiB / 256MiB 37.23%",
"mtusi-messenger-lab6-api-2 78.8MiB / 256MiB 30.78%",
"mtusi-messenger-lab6-otel-collector-1 72.8MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:51Z",
"api_memory": "100081664",
"collector_rss": "235732992",
"collector_heap": "33370496",
"queue_logs": "15134",
"queue_traces": "53761",
"sent_spans": "3.727989090798075",
"send_failed_spans": "0.45794224500249325",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.373138125557587",
"api_error_5m": "0",
"api_p99": "0.07624999999999998",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.82MiB / 256MiB 30.79%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:03Z",
"api_memory": "100519936",
"collector_rss": "235806720",
"collector_heap": "36385224",
"queue_logs": "16654",
"queue_traces": "54799",
"sent_spans": "3.3752039539072647",
"send_failed_spans": "0.5495306940029918",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799224551131795",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.88MiB / 256MiB 30.81%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:16Z",
"api_memory": "20692992",
"collector_rss": "235880448",
"collector_heap": "41257584",
"queue_logs": "19142",
"queue_traces": "68887",
"sent_spans": "3.065376917945297",
"send_failed_spans": "0.6537691794529688",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3769179452968646",
"api_error_5m": "0",
"api_p99": "0.07575000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.9MiB / 256MiB 30.82%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:28Z",
"api_memory": "20959232",
"collector_rss": "235880448",
"collector_heap": "44260552",
"queue_logs": "20661",
"queue_traces": "65858",
"sent_spans": "2.924016282225238",
"send_failed_spans": "0.8582089552238806",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799185888738128",
"api_error_5m": "0",
"api_p99": "0.07624999999999983",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.5MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.91MiB / 256MiB 30.83%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:40Z",
"api_memory": "20717568",
"collector_rss": "235888640",
"collector_heap": "47361016",
"queue_logs": "19261",
"queue_traces": "72770",
"sent_spans": "2.6289277027920908",
"send_failed_spans": "0.8582176887824503",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3663537960019945",
"api_error_5m": "0",
"api_p99": "0.07674999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.52MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.95MiB / 256MiB 30.84%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:52Z",
"api_memory": "20717568",
"collector_rss": "235954176",
"collector_heap": "52161840",
"queue_logs": "23811",
"queue_traces": "87554",
"sent_spans": "2.2278663008941986",
"send_failed_spans": "0.9460802099687694",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.07875",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 79.09MiB / 256MiB 30.89%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:04Z",
"api_memory": "20987904",
"collector_rss": "235962368",
"collector_heap": "55371152",
"queue_logs": "24571",
"queue_traces": "90306",
"sent_spans": "2.078684833400023",
"send_failed_spans": "1.047819924177173",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.38318333796770415",
"api_error_5m": "0",
"api_p99": "0.07774999999999985",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.01MiB / 256MiB 5.86%",
"mtusi-messenger-lab6-otel-collector-1 68.88MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:16Z",
"api_memory": "19234816",
"collector_rss": "231804928",
"collector_heap": "30398280",
"queue_logs": "25659",
"queue_traces": "96377",
"sent_spans": "1.8854040563315326",
"send_failed_spans": "1.2546753612278185",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3831846373479554",
"api_error_5m": "0",
"api_p99": "0.07599999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.87MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:28Z",
"api_memory": "19234816",
"collector_rss": "231813120",
"collector_heap": "33688048",
"queue_logs": "27594",
"queue_traces": "101221",
"sent_spans": "1.831147824494654",
"send_failed_spans": "1.3462327524525513",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4103127532663947",
"api_error_5m": "0",
"api_p99": "0.07500000000000002",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:40Z",
"api_memory": "19496960",
"collector_rss": "231817216",
"collector_heap": "36910680",
"queue_logs": "30512",
"queue_traces": "113187",
"sent_spans": "1.7910630026764178",
"send_failed_spans": "1.3975718884520534",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4240205972245308",
"api_error_5m": "0",
"api_p99": "0.07324999999999986",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:52Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "41366880",
"queue_logs": "35822",
"queue_traces": "128858",
"sent_spans": "1.7469589345925005",
"send_failed_spans": "1.4518416000108547",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.44776423177904867",
"api_error_5m": "0",
"api_p99": "0.07325",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.49MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:04Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "44702392",
"queue_logs": "35822",
"queue_traces": "130372",
"sent_spans": "1.6994745536759195",
"send_failed_spans": "1.5400428091194958",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.454550080224697",
"api_error_5m": "0",
"api_p99": "0.07250000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:17Z",
"api_memory": "18595840",
"collector_rss": "231829504",
"collector_heap": "49175936",
"queue_logs": "38101",
"queue_traces": "137284",
"sent_spans": "1.6587404427378376",
"send_failed_spans": "1.5942904050854472",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.47150290703590886",
"api_error_5m": "0",
"api_p99": "0.07174999999999984",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:29Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "28314784",
"queue_logs": "41436",
"queue_traces": "151031",
"sent_spans": "1.6553651810216452",
"send_failed_spans": "1.6519730392572565",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4579391381924633",
"api_error_5m": "0",
"api_p99": "0.07000000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:41Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "32877592",
"queue_logs": "43716",
"queue_traces": "160304",
"sent_spans": "1.139763499073942",
"send_failed_spans": "1.6519786430030055",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4308034654237817",
"api_error_5m": "0",
"api_p99": "0.02295625",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:53Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "36050000",
"queue_logs": "40381",
"queue_traces": "150406",
"sent_spans": "0.7940305192755999",
"send_failed_spans": "1.9816830053715822",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4173750165423025",
"api_error_5m": "0",
"api_p99": "0.022835714285714282",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.2MiB / 256MiB 7.11%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:05Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "39159560",
"queue_logs": "43076",
"queue_traces": "158459",
"sent_spans": "0.6447300108246775",
"send_failed_spans": "1.9816964543242719",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43773774419149153",
"api_error_5m": "0",
"api_p99": "0.022835714285714286",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.36MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:17Z",
"api_memory": "19341312",
"collector_rss": "231845888",
"collector_heap": "43874408",
"queue_logs": "47931",
"queue_traces": "174667",
"sent_spans": "0.4513125390232647",
"send_failed_spans": "2.0359964166463067",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.458099193745419",
"api_error_5m": "0",
"api_p99": "0.022975",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:29Z",
"api_memory": "19775488",
"collector_rss": "231845888",
"collector_heap": "47045432",
"queue_logs": "50851",
"queue_traces": "184628",
"sent_spans": "0.2816433038456187",
"send_failed_spans": "2.1242013037031002",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4343414806293879",
"api_error_5m": "0",
"api_p99": "0.023133333333333336",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:41Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43094965015032344",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery-start",
"utc": "2026-11-06T14:22:44Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4309496501503233",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:22:55Z",
"api_memory": "17846272",
"collector_rss": "231858176",
"collector_heap": "33163992",
"queue_logs": "0",
"queue_traces": "209455",
"sent_spans": "0",
"send_failed_spans": "2.19221413627764",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4471182561053331",
"api_error_5m": "0",
"api_p99": "0.02316666666666667",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.53MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:07Z",
"api_memory": "17846272",
"collector_rss": "233185280",
"collector_heap": "39395888",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.5300766550049705",
"send_failed_spans": "2.1106424564892077",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.42755779665215454",
"api_error_5m": "0",
"api_p99": "0.0233",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:20Z",
"api_memory": "19693568",
"collector_rss": "233189376",
"collector_heap": "42195304",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.635190802912773",
"send_failed_spans": "1.8832583423254678",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4207640260330775",
"api_error_5m": "0",
"api_p99": "0.023181249999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.05MiB / 256MiB 5.49%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
}
]
+870 -20
View File
@@ -1,20 +1,870 @@
Telemetry storage down (local, 2026-11-04) UTC 2026-11-06T14:30:14Z
========================================== HEAD 255f601a9946187c4c330828426c6458a89aad2b
$ docker compose --env-file .env stop loki tempo load_exit= 0
Container mtusi-messenger-lab6-loki-1 Stopping load_summary= {"counters": {"accepted": 31, "ready": 31, "failed": 0, "messages": 125, "uploads": 31, "dropped": 0}, "failures": 0, "failures_by_reason": {}, "duration_s": 775.03}
Container mtusi-messenger-lab6-tempo-1 Stopped [
Container mtusi-messenger-lab6-loki-1 Stopped {
$ make test "phase": "baseline",
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080" "utc": "2026-11-06T14:16:36Z",
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. "api_memory": "19447808",
$ collector queue after 20s "collector_rss": "235225088",
[{'metric': {'__name__': 'otelcol_exporter_queue_size', 'data_type': 'logs', 'exporter': 'otlp_http/loki', 'instance': 'otel-collector:8888', 'job': 'otel-collector-self'}, 'value': [1793810852.186, '21950']}, {'metric': {'__name__': 'otelcol_exporter_queue_size', 'data_type': 'traces', 'exporter': 'otlp_grpc/tempo', 'instance': 'otel-collector:8888', 'job': 'otel-collector-self'}, 'value': [1793810852.186, '47471']}] "collector_heap": "49942672",
$ RSS app/collector "queue_logs": "0",
mtusi-messenger-lab6-api-2 190.6MiB / 256MiB "queue_traces": "0",
mtusi-messenger-lab6-api-1 191.2MiB / 256MiB "sent_spans": "4.860972126582021",
mtusi-messenger-lab6-relay-1 15.76MiB / 128MiB "send_failed_spans": "0",
mtusi-messenger-lab6-worker-1 13.85MiB / 1GiB "enqueue_failed_spans": "MISSING",
mtusi-messenger-lab6-otel-collector-1 86.08MiB / 192MiB "accepted_logs": "0.3324321482240321",
$ docker compose start loki tempo "api_error_5m": "0",
Container mtusi-messenger-lab6-loki-1 Started "api_p99": "0.02352142857142857",
Container mtusi-messenger-lab6-tempo-1 Started "api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.92%",
"mtusi-messenger-lab6-api-2 187.9MiB / 256MiB 73.40%",
"mtusi-messenger-lab6-otel-collector-1 72.32MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:16:48Z",
"api_memory": "198602752",
"collector_rss": "235229184",
"collector_heap": "52750392",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.8270668530102165",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.342609804746333",
"api_error_5m": "0",
"api_p99": "0.07924999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.9MiB / 256MiB 73.78%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.46%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:00Z",
"api_memory": "197406720",
"collector_rss": "235229184",
"collector_heap": "55751416",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.906714773043249",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424866565842212",
"api_error_5m": "0",
"api_p99": "0.07849999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.84%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.50%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:12Z",
"api_memory": "198733824",
"collector_rss": "235233280",
"collector_heap": "32717896",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.910172330771997",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424913020773284",
"api_error_5m": "0",
"api_p99": "0.07900000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.91%",
"mtusi-messenger-lab6-api-2 188.3MiB / 256MiB 73.56%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:25Z",
"api_memory": "198746112",
"collector_rss": "235233280",
"collector_heap": "35503232",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.7575287977999405",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3289239439676366",
"api_error_5m": "0",
"api_p99": "0.0795000000000001",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 187.5MiB / 256MiB 73.26%",
"mtusi-messenger-lab6-api-2 189.1MiB / 256MiB 73.88%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:37Z",
"api_memory": "198746112",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.08075000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.01%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "down-start",
"utc": "2026-11-06T14:17:39Z",
"api_memory": "196960256",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.07874999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.02%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:17:51Z",
"api_memory": "196960256",
"collector_rss": "235249664",
"collector_heap": "44557832",
"queue_logs": "5287",
"queue_traces": "17234",
"sent_spans": "4.665988470668022",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.36283485927433035",
"api_error_5m": "0",
"api_p99": "0.07950000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.82%",
"mtusi-messenger-lab6-api-2 187.7MiB / 256MiB 73.33%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:03Z",
"api_memory": "197980160",
"collector_rss": "235249664",
"collector_heap": "47533792",
"queue_logs": "6807",
"queue_traces": "22823",
"sent_spans": "4.516770034689609",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.0774999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.1MiB / 256MiB 73.48%",
"mtusi-messenger-lab6-api-2 188MiB / 256MiB 73.43%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:15Z",
"api_memory": "197365760",
"collector_rss": "235253760",
"collector_heap": "50792392",
"queue_logs": "7567",
"queue_traces": "26898",
"sent_spans": "4.411679931095053",
"send_failed_spans": "0.11868470222008212",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3730090641202581",
"api_error_5m": "0",
"api_p99": "0.07625000000000012",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.58%",
"mtusi-messenger-lab6-api-2 188.7MiB / 256MiB 73.71%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:27Z",
"api_memory": "197820416",
"collector_rss": "235257856",
"collector_heap": "55635944",
"queue_logs": "10262",
"queue_traces": "35035",
"sent_spans": "4.065812586046701",
"send_failed_spans": "0.34588230506819306",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3967473499311627",
"api_error_5m": "0",
"api_p99": "0.07549999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.14MiB / 256MiB 37.16%",
"mtusi-messenger-lab6-api-2 78.77MiB / 256MiB 30.77%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:39Z",
"api_memory": "100081664",
"collector_rss": "235257856",
"collector_heap": "58521320",
"queue_logs": "14374",
"queue_traces": "47240",
"sent_spans": "3.9247080213976298",
"send_failed_spans": "0.4002727281978568",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3968805864334682",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.32MiB / 256MiB 37.23%",
"mtusi-messenger-lab6-api-2 78.8MiB / 256MiB 30.78%",
"mtusi-messenger-lab6-otel-collector-1 72.8MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:51Z",
"api_memory": "100081664",
"collector_rss": "235732992",
"collector_heap": "33370496",
"queue_logs": "15134",
"queue_traces": "53761",
"sent_spans": "3.727989090798075",
"send_failed_spans": "0.45794224500249325",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.373138125557587",
"api_error_5m": "0",
"api_p99": "0.07624999999999998",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.82MiB / 256MiB 30.79%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:03Z",
"api_memory": "100519936",
"collector_rss": "235806720",
"collector_heap": "36385224",
"queue_logs": "16654",
"queue_traces": "54799",
"sent_spans": "3.3752039539072647",
"send_failed_spans": "0.5495306940029918",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799224551131795",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.88MiB / 256MiB 30.81%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:16Z",
"api_memory": "20692992",
"collector_rss": "235880448",
"collector_heap": "41257584",
"queue_logs": "19142",
"queue_traces": "68887",
"sent_spans": "3.065376917945297",
"send_failed_spans": "0.6537691794529688",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3769179452968646",
"api_error_5m": "0",
"api_p99": "0.07575000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.9MiB / 256MiB 30.82%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:28Z",
"api_memory": "20959232",
"collector_rss": "235880448",
"collector_heap": "44260552",
"queue_logs": "20661",
"queue_traces": "65858",
"sent_spans": "2.924016282225238",
"send_failed_spans": "0.8582089552238806",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799185888738128",
"api_error_5m": "0",
"api_p99": "0.07624999999999983",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.5MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.91MiB / 256MiB 30.83%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:40Z",
"api_memory": "20717568",
"collector_rss": "235888640",
"collector_heap": "47361016",
"queue_logs": "19261",
"queue_traces": "72770",
"sent_spans": "2.6289277027920908",
"send_failed_spans": "0.8582176887824503",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3663537960019945",
"api_error_5m": "0",
"api_p99": "0.07674999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.52MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.95MiB / 256MiB 30.84%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:52Z",
"api_memory": "20717568",
"collector_rss": "235954176",
"collector_heap": "52161840",
"queue_logs": "23811",
"queue_traces": "87554",
"sent_spans": "2.2278663008941986",
"send_failed_spans": "0.9460802099687694",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.07875",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 79.09MiB / 256MiB 30.89%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:04Z",
"api_memory": "20987904",
"collector_rss": "235962368",
"collector_heap": "55371152",
"queue_logs": "24571",
"queue_traces": "90306",
"sent_spans": "2.078684833400023",
"send_failed_spans": "1.047819924177173",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.38318333796770415",
"api_error_5m": "0",
"api_p99": "0.07774999999999985",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.01MiB / 256MiB 5.86%",
"mtusi-messenger-lab6-otel-collector-1 68.88MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:16Z",
"api_memory": "19234816",
"collector_rss": "231804928",
"collector_heap": "30398280",
"queue_logs": "25659",
"queue_traces": "96377",
"sent_spans": "1.8854040563315326",
"send_failed_spans": "1.2546753612278185",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3831846373479554",
"api_error_5m": "0",
"api_p99": "0.07599999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.87MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:28Z",
"api_memory": "19234816",
"collector_rss": "231813120",
"collector_heap": "33688048",
"queue_logs": "27594",
"queue_traces": "101221",
"sent_spans": "1.831147824494654",
"send_failed_spans": "1.3462327524525513",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4103127532663947",
"api_error_5m": "0",
"api_p99": "0.07500000000000002",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:40Z",
"api_memory": "19496960",
"collector_rss": "231817216",
"collector_heap": "36910680",
"queue_logs": "30512",
"queue_traces": "113187",
"sent_spans": "1.7910630026764178",
"send_failed_spans": "1.3975718884520534",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4240205972245308",
"api_error_5m": "0",
"api_p99": "0.07324999999999986",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:52Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "41366880",
"queue_logs": "35822",
"queue_traces": "128858",
"sent_spans": "1.7469589345925005",
"send_failed_spans": "1.4518416000108547",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.44776423177904867",
"api_error_5m": "0",
"api_p99": "0.07325",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.49MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:04Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "44702392",
"queue_logs": "35822",
"queue_traces": "130372",
"sent_spans": "1.6994745536759195",
"send_failed_spans": "1.5400428091194958",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.454550080224697",
"api_error_5m": "0",
"api_p99": "0.07250000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:17Z",
"api_memory": "18595840",
"collector_rss": "231829504",
"collector_heap": "49175936",
"queue_logs": "38101",
"queue_traces": "137284",
"sent_spans": "1.6587404427378376",
"send_failed_spans": "1.5942904050854472",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.47150290703590886",
"api_error_5m": "0",
"api_p99": "0.07174999999999984",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:29Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "28314784",
"queue_logs": "41436",
"queue_traces": "151031",
"sent_spans": "1.6553651810216452",
"send_failed_spans": "1.6519730392572565",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4579391381924633",
"api_error_5m": "0",
"api_p99": "0.07000000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:41Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "32877592",
"queue_logs": "43716",
"queue_traces": "160304",
"sent_spans": "1.139763499073942",
"send_failed_spans": "1.6519786430030055",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4308034654237817",
"api_error_5m": "0",
"api_p99": "0.02295625",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:53Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "36050000",
"queue_logs": "40381",
"queue_traces": "150406",
"sent_spans": "0.7940305192755999",
"send_failed_spans": "1.9816830053715822",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4173750165423025",
"api_error_5m": "0",
"api_p99": "0.022835714285714282",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.2MiB / 256MiB 7.11%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:05Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "39159560",
"queue_logs": "43076",
"queue_traces": "158459",
"sent_spans": "0.6447300108246775",
"send_failed_spans": "1.9816964543242719",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43773774419149153",
"api_error_5m": "0",
"api_p99": "0.022835714285714286",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.36MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:17Z",
"api_memory": "19341312",
"collector_rss": "231845888",
"collector_heap": "43874408",
"queue_logs": "47931",
"queue_traces": "174667",
"sent_spans": "0.4513125390232647",
"send_failed_spans": "2.0359964166463067",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.458099193745419",
"api_error_5m": "0",
"api_p99": "0.022975",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:29Z",
"api_memory": "19775488",
"collector_rss": "231845888",
"collector_heap": "47045432",
"queue_logs": "50851",
"queue_traces": "184628",
"sent_spans": "0.2816433038456187",
"send_failed_spans": "2.1242013037031002",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4343414806293879",
"api_error_5m": "0",
"api_p99": "0.023133333333333336",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:41Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43094965015032344",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery-start",
"utc": "2026-11-06T14:22:44Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4309496501503233",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:22:55Z",
"api_memory": "17846272",
"collector_rss": "231858176",
"collector_heap": "33163992",
"queue_logs": "0",
"queue_traces": "209455",
"sent_spans": "0",
"send_failed_spans": "2.19221413627764",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4471182561053331",
"api_error_5m": "0",
"api_p99": "0.02316666666666667",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.53MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:07Z",
"api_memory": "17846272",
"collector_rss": "233185280",
"collector_heap": "39395888",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.5300766550049705",
"send_failed_spans": "2.1106424564892077",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.42755779665215454",
"api_error_5m": "0",
"api_p99": "0.0233",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:20Z",
"api_memory": "19693568",
"collector_rss": "233189376",
"collector_heap": "42195304",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.635190802912773",
"send_failed_spans": "1.8832583423254678",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4207640260330775",
"api_error_5m": "0",
"api_p99": "0.023181249999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.05MiB / 256MiB 5.49%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
}
]
File diff suppressed because one or more lines are too long
+10 -3
View File
@@ -1,3 +1,10 @@
trace_id=280c2940aca363c6df3cdb2f96d49986 UTC 2026-11-06T13:33:27Z
messenger-relay job.publish attempt=2 parent=BnhRFOI4G5c= HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
messenger-worker job.process attempt=2 parent=4J4JtxSlLP0= trace_id 8fde5dba009f11d058f58817b09c6e33
messenger-api POST /api/v1/chats/{chat_id}/attachments kind SPAN_KIND_SERVER attempt None outcome None parent None
messenger-relay job.publish kind SPAN_KIND_PRODUCER attempt 1 outcome None parent PG9WhmyuKyQ=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 1 outcome retried parent UcMZs5m1AA8=
messenger-relay job.requeue kind SPAN_KIND_INTERNAL attempt 2 outcome None parent PG9WhmyuKyQ=
messenger-relay job.publish kind SPAN_KIND_PRODUCER attempt 2 outcome None parent x4G/QURH+70=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 2 outcome succeeded parent +VRIOo1OxO4=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 1 outcome already_ready parent UcMZs5m1AA8=
@@ -1,4 +0,0 @@
{
"aborted_utc": "2026-11-04T19:13:03Z",
"error": "RuntimeError('warmup: load failed rc=1 failures=120')"
}
@@ -1,37 +0,0 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 4195.02,
"scheduled": 840,
"counters": {
"accepted": 145,
"ready": 145,
"failed": 120,
"messages": 672,
"uploads": 145,
"dropped": 0
},
"failures": 120,
"failure_samples": [
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/attachments: expected [202], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401",
"Failure: POST /api/v1/chats/01a1a7ba-a276-7cfc-8da8-7629b0bd07f2/messages: expected [201], received 401"
],
"latency_ms": {
"p50": 9.7,
"p95": 13.9,
"p99": 27.2
},
"ttr_ms": {
"p50": 661.2,
"p95": 1278.4,
"p99": 1288.2
}
}
-4
View File
@@ -1,4 +0,0 @@
observed_utc,alert,state,active_at,value,injection_utc
2026-11-04T23:06:11Z,DBPoolSaturated,pending,2026-11-04T23:02:48.187213033Z,"""3.3898419994644047e-03""",
2026-11-04T23:06:56Z,APIErrorBudgetSlowBurn,firing,2026-11-04T23:06:53.187213033Z,"""4.4048551292090836e-02""",
2026-11-04T23:07:46Z,DBPoolSaturated,resolved,,,
1 observed_utc alert state active_at value injection_utc
2 2026-11-04T23:06:11Z DBPoolSaturated pending 2026-11-04T23:02:48.187213033Z "3.3898419994644047e-03"
3 2026-11-04T23:06:56Z APIErrorBudgetSlowBurn firing 2026-11-04T23:06:53.187213033Z "4.4048551292090836e-02"
4 2026-11-04T23:07:46Z DBPoolSaturated resolved
-37
View File
@@ -1,37 +0,0 @@
{
"base_url": "http://localhost:8080",
"rate": 0.5,
"duration_s": 138.01,
"scheduled": 70,
"counters": {
"accepted": 3,
"ready": 3,
"failed": 62,
"messages": 56,
"uploads": 3,
"dropped": 0
},
"failures": 62,
"failure_samples": [
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503"
],
"latency_ms": {
"p50": 6.2,
"p95": 10.7,
"p99": 10.7
},
"ttr_ms": {
"p50": 327.8,
"p95": 329.0,
"p99": 329.0
}
}
-6
View File
@@ -1,6 +0,0 @@
{
"scenario": "burst",
"injection_utc": "2026-11-04T23:06:16Z",
"restore_utc": "2026-11-04T23:08:16Z",
"duration_seconds": 120
}
+11
View File
@@ -0,0 +1,11 @@
2026-11-06T08:37:06Z preflight OK; start full track
2026-11-06T08:37:06Z warmup started
2026-11-06T09:42:56Z baseline started
2026-11-06T10:03:01Z burst: pause postgres
2026-11-06T10:05:01Z burst: unpause postgres
2026-11-06T11:29:51Z sustained: stop postgres
2026-11-06T11:44:55Z sustained: postgres restored
2026-11-06T11:49:53Z resolution under normal load
2026-11-06T12:52:17Z ttr: worker stopped and uploads started
2026-11-06T13:07:47Z false-positive phase started
2026-11-06T13:30:25Z done; evidence /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2/full
@@ -0,0 +1,83 @@
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"firing": {},
"pending": {
"APISLIMissing": 1
},
"page": 0,
"ticket": 0
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"firing": {},
"pending": {
"APISLIMissing": 2
},
"page": 0,
"ticket": 0
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"firing": {
"APIErrorBudgetFastBurn": 1,
"APIErrorBudgetSlowBurn": 1,
"QueueMetricsStale": 1
},
"pending": {
"QueueMetricsStale": 1
},
"page": 1,
"ticket": 1
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"firing": {
"JobsOverdue": 1,
"QueueOldestJobAgeHigh": 1,
"QueueOldestJobAgeCritical": 1
},
"pending": {
"JobsOverdue": 1,
"QueueOldestJobAgeHigh": 1,
"QueueOldestJobAgeCritical": 1
},
"page": 1,
"ticket": 0
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
}
]
+11
View File
@@ -0,0 +1,11 @@
# Alert firing by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {'QueueMetricsStale': 1} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeHigh': 1, 'QueueOldestJobAgeCritical': 1} | {'JobsOverdue': 1, 'QueueOldestJobAgeHigh': 1, 'QueueOldestJobAgeCritical': 1} |
| false-positive | 0 | 0 | {} | {} |
+19 -51
View File
@@ -1,52 +1,20 @@
observed_utc,alert,state,active_at,value,injection_utc observed_utc,alert,state,active_at,value,injection_utc
2026-11-04T19:28:22Z,QueueMetricsStale,pending,2026-11-04T19:27:48.187213033Z,1e+00, 2026-11-06T09:25:32Z,APISLIMissing,pending,2026-11-06T09:25:28.187213033Z,1e+00,
2026-11-04T19:28:32Z,QueueMetricsStale,resolved,,, 2026-11-06T10:31:47Z,APISLIMissing,pending,2026-11-06T10:31:43.187213033Z,1e+00,2026-11-06T10:03:01Z
2026-11-04T19:28:52Z,TTRErrorBudgetFastBurn,firing,2026-11-04T19:28:38.187213033Z,3.3333333333333326e-01, 2026-11-06T11:08:09Z,APISLIMissing,pending,2026-11-06T11:08:08.187213033Z,1e+00,2026-11-06T10:03:01Z
2026-11-04T19:29:22Z,TTRErrorBudgetFastBurn,resolved,,, 2026-11-06T11:34:51Z,APIErrorBudgetFastBurn,firing,2026-11-06T11:34:48.187213033Z,7.220216606498195e-02,2026-11-06T11:29:51Z
2026-11-04T20:28:04Z,DBPoolSaturated,pending,2026-11-04T20:27:58.187213033Z,1.3601139775513188e-02, 2026-11-06T11:34:56Z,QueueMetricsStale,pending,2026-11-06T11:34:53.187213033Z,1e+00,2026-11-06T11:29:51Z
2026-11-04T20:33:05Z,DBPoolSaturated,firing,2026-11-04T20:27:58.187213033Z,3.3969814422903804e-03, 2026-11-06T11:35:11Z,APIErrorBudgetSlowBurn,firing,2026-11-06T11:35:08.187213033Z,3.0189959294436908e-02,2026-11-06T11:29:51Z
2026-11-04T20:33:05Z,DBPoolSaturated,resolved,,, 2026-11-06T11:36:56Z,QueueMetricsStale,firing,2026-11-06T11:34:53.187213033Z,1e+00,2026-11-06T11:29:51Z
2026-11-04T20:36:05Z,DBPoolSaturated,resolved,,, 2026-11-06T11:45:12Z,QueueMetricsStale,resolved,,,2026-11-06T11:29:51Z
2026-11-04T21:00:36Z,DBPoolSaturated,pending,2026-11-04T21:00:33.187213033Z,2.0338983050847456e-02,2026-11-04T20:58:26Z 2026-11-06T11:49:30Z,APIErrorBudgetFastBurn,resolved,,,2026-11-06T11:29:51Z
2026-11-04T21:05:36Z,DBPoolSaturated,resolved,,,2026-11-04T20:58:26Z 2026-11-06T12:13:32Z,APIErrorBudgetSlowBurn,resolved,,,2026-11-06T11:29:51Z
2026-11-04T21:13:56Z,APIErrorBudgetSlowBurn,firing,2026-11-04T21:13:53.187213033Z,3.044280442804428e-02,2026-11-04T21:10:21Z 2026-11-06T12:53:03Z,JobsOverdue,pending,2026-11-06T12:52:58.187213033Z,3e+00,2026-11-06T12:52:17Z
2026-11-04T21:15:26Z,QueueMetricsStale,pending,2026-11-04T21:15:18.187213033Z,1e+00,2026-11-04T21:10:21Z 2026-11-06T12:54:33Z,QueueOldestJobAgeHigh,pending,2026-11-06T12:54:28.187213033Z,1.32353293e+02,2026-11-06T12:52:17Z
2026-11-04T21:15:36Z,APIErrorBudgetFastBurn,firing,2026-11-04T21:15:28.187213033Z,7.369323050556983e-02,2026-11-04T21:10:21Z 2026-11-06T12:55:03Z,JobsOverdue,firing,2026-11-06T12:52:58.187213033Z,2e+01,2026-11-06T12:52:17Z
2026-11-04T21:17:26Z,QueueMetricsStale,firing,2026-11-04T21:15:18.187213033Z,1e+00,2026-11-04T21:10:21Z 2026-11-06T13:02:24Z,QueueOldestJobAgeCritical,pending,2026-11-06T13:02:23.187213033Z,6.09947642e+02,2026-11-06T12:52:17Z
2026-11-04T21:17:26Z,QueueMetricsStale,resolved,,,2026-11-04T21:10:21Z 2026-11-06T13:04:34Z,QueueOldestJobAgeHigh,firing,2026-11-06T12:54:28.187213033Z,7.29503946e+02,2026-11-06T12:52:17Z
2026-11-04T21:25:37Z,DBPoolSaturated,pending,2026-11-04T21:25:33.187213033Z,1.0169457052687956e-02,2026-11-04T21:10:21Z 2026-11-06T13:07:29Z,QueueOldestJobAgeCritical,firing,2026-11-06T13:02:23.187213033Z,9.08863892e+02,2026-11-06T12:52:17Z
2026-11-04T21:25:37Z,QueueMetricsStale,resolved,,,2026-11-04T21:10:21Z 2026-11-06T13:07:44Z,JobsOverdue,resolved,,,2026-11-06T12:52:17Z
2026-11-04T21:30:07Z,APIErrorBudgetFastBurn,resolved,,,2026-11-04T21:10:21Z 2026-11-06T13:07:44Z,QueueOldestJobAgeCritical,resolved,,,2026-11-06T12:52:17Z
2026-11-04T21:30:37Z,DBPoolSaturated,firing,2026-11-04T21:25:33.187213033Z,3.389807526728633e-03,2026-11-04T21:10:21Z 2026-11-06T13:07:44Z,QueueOldestJobAgeHigh,resolved,,,2026-11-06T12:52:17Z
2026-11-04T21:30:37Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z
2026-11-04T21:30:47Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z
2026-11-04T21:54:08Z,APIErrorBudgetSlowBurn,resolved,,,2026-11-04T21:10:21Z
2026-11-04T22:01:58Z,DBPoolSaturated,pending,2026-11-04T22:01:48.187213033Z,3.389853490532139e-03,2026-11-04T21:10:21Z
2026-11-04T22:06:49Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z
2026-11-04T22:25:40Z,DBPoolSaturated,pending,2026-11-04T22:25:33.187213033Z,6.779638035125306e-03,2026-11-04T21:10:21Z
2026-11-04T22:30:40Z,DBPoolSaturated,firing,2026-11-04T22:25:33.187213033Z,3.3897845452943018e-03,2026-11-04T22:30:24Z
2026-11-04T22:30:40Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:30:50Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:31:10Z,JobsOverdue,pending,2026-11-04T22:31:03.187213033Z,3e+00,2026-11-04T22:30:24Z
2026-11-04T22:32:10Z,DBPoolSaturated,pending,2026-11-04T22:32:03.187213033Z,3.3898649816777792e-03,2026-11-04T22:30:24Z
2026-11-04T22:32:40Z,QueueOldestJobAgeHigh,pending,2026-11-04T22:32:33.187213033Z,1.32959697e+02,2026-11-04T22:30:24Z
2026-11-04T22:33:10Z,JobsOverdue,firing,2026-11-04T22:31:03.187213033Z,2e+01,2026-11-04T22:30:24Z
2026-11-04T22:33:10Z,JobsOverdue,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:37:00Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:40:40Z,QueueOldestJobAgeCritical,pending,2026-11-04T22:40:33.187213033Z,6.12958759e+02,2026-11-04T22:30:24Z
2026-11-04T22:42:40Z,QueueOldestJobAgeHigh,firing,2026-11-04T22:32:33.187213033Z,7.32958909e+02,2026-11-04T22:30:24Z
2026-11-04T22:42:40Z,QueueOldestJobAgeHigh,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:45:41Z,JobsOverdue,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:45:41Z,QueueOldestJobAgeCritical,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:45:41Z,QueueOldestJobAgeHigh,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:46:21Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:46:18.187213033Z,1.5503875968992242e-01,2026-11-04T22:30:24Z
2026-11-04T22:47:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:47:41Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:47:33.187213033Z,1.5625e-01,2026-11-04T22:30:24Z
2026-11-04T22:48:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:49:11Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:49:03.187213033Z,1.6535433070866146e-01,2026-11-04T22:30:24Z
2026-11-04T22:49:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z
2026-11-04T22:58:11Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:58:08.187213033Z,1.640625e-01,2026-11-04T22:30:24Z
2026-11-04T22:58:21Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z
2026-11-04T23:02:42Z,TTRErrorBudgetFastBurn,firing,2026-11-04T23:02:38.187213033Z,1.6279069767441856e-01,2026-11-04T22:30:24Z
2026-11-04T23:02:52Z,DBPoolSaturated,pending,2026-11-04T23:02:48.187213033Z,3.389830508474576e-03,2026-11-04T22:30:24Z
2026-11-04T23:02:52Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z
1 observed_utc alert state active_at value injection_utc
2 2026-11-04T19:28:22Z 2026-11-06T09:25:32Z QueueMetricsStale APISLIMissing pending 2026-11-04T19:27:48.187213033Z 2026-11-06T09:25:28.187213033Z 1e+00
3 2026-11-04T19:28:32Z 2026-11-06T10:31:47Z QueueMetricsStale APISLIMissing resolved pending 2026-11-06T10:31:43.187213033Z 1e+00 2026-11-06T10:03:01Z
4 2026-11-04T19:28:52Z 2026-11-06T11:08:09Z TTRErrorBudgetFastBurn APISLIMissing firing pending 2026-11-04T19:28:38.187213033Z 2026-11-06T11:08:08.187213033Z 3.3333333333333326e-01 1e+00 2026-11-06T10:03:01Z
5 2026-11-04T19:29:22Z 2026-11-06T11:34:51Z TTRErrorBudgetFastBurn APIErrorBudgetFastBurn resolved firing 2026-11-06T11:34:48.187213033Z 7.220216606498195e-02 2026-11-06T11:29:51Z
6 2026-11-04T20:28:04Z 2026-11-06T11:34:56Z DBPoolSaturated QueueMetricsStale pending 2026-11-04T20:27:58.187213033Z 2026-11-06T11:34:53.187213033Z 1.3601139775513188e-02 1e+00 2026-11-06T11:29:51Z
7 2026-11-04T20:33:05Z 2026-11-06T11:35:11Z DBPoolSaturated APIErrorBudgetSlowBurn firing 2026-11-04T20:27:58.187213033Z 2026-11-06T11:35:08.187213033Z 3.3969814422903804e-03 3.0189959294436908e-02 2026-11-06T11:29:51Z
8 2026-11-04T20:33:05Z 2026-11-06T11:36:56Z DBPoolSaturated QueueMetricsStale resolved firing 2026-11-06T11:34:53.187213033Z 1e+00 2026-11-06T11:29:51Z
9 2026-11-04T20:36:05Z 2026-11-06T11:45:12Z DBPoolSaturated QueueMetricsStale resolved 2026-11-06T11:29:51Z
10 2026-11-04T21:00:36Z 2026-11-06T11:49:30Z DBPoolSaturated APIErrorBudgetFastBurn pending resolved 2026-11-04T21:00:33.187213033Z 2.0338983050847456e-02 2026-11-04T20:58:26Z 2026-11-06T11:29:51Z
11 2026-11-04T21:05:36Z 2026-11-06T12:13:32Z DBPoolSaturated APIErrorBudgetSlowBurn resolved 2026-11-04T20:58:26Z 2026-11-06T11:29:51Z
12 2026-11-04T21:13:56Z 2026-11-06T12:53:03Z APIErrorBudgetSlowBurn JobsOverdue firing pending 2026-11-04T21:13:53.187213033Z 2026-11-06T12:52:58.187213033Z 3.044280442804428e-02 3e+00 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
13 2026-11-04T21:15:26Z 2026-11-06T12:54:33Z QueueMetricsStale QueueOldestJobAgeHigh pending 2026-11-04T21:15:18.187213033Z 2026-11-06T12:54:28.187213033Z 1e+00 1.32353293e+02 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
14 2026-11-04T21:15:36Z 2026-11-06T12:55:03Z APIErrorBudgetFastBurn JobsOverdue firing 2026-11-04T21:15:28.187213033Z 2026-11-06T12:52:58.187213033Z 7.369323050556983e-02 2e+01 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
15 2026-11-04T21:17:26Z 2026-11-06T13:02:24Z QueueMetricsStale QueueOldestJobAgeCritical firing pending 2026-11-04T21:15:18.187213033Z 2026-11-06T13:02:23.187213033Z 1e+00 6.09947642e+02 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
16 2026-11-04T21:17:26Z 2026-11-06T13:04:34Z QueueMetricsStale QueueOldestJobAgeHigh resolved firing 2026-11-06T12:54:28.187213033Z 7.29503946e+02 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
17 2026-11-04T21:25:37Z 2026-11-06T13:07:29Z DBPoolSaturated QueueOldestJobAgeCritical pending firing 2026-11-04T21:25:33.187213033Z 2026-11-06T13:02:23.187213033Z 1.0169457052687956e-02 9.08863892e+02 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
18 2026-11-04T21:25:37Z 2026-11-06T13:07:44Z QueueMetricsStale JobsOverdue resolved 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
19 2026-11-04T21:30:07Z 2026-11-06T13:07:44Z APIErrorBudgetFastBurn QueueOldestJobAgeCritical resolved 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
20 2026-11-04T21:30:37Z 2026-11-06T13:07:44Z DBPoolSaturated QueueOldestJobAgeHigh firing resolved 2026-11-04T21:25:33.187213033Z 3.389807526728633e-03 2026-11-04T21:10:21Z 2026-11-06T12:52:17Z
2026-11-04T21:30:37Z DBPoolSaturated resolved 2026-11-04T21:10:21Z
2026-11-04T21:30:47Z DBPoolSaturated resolved 2026-11-04T21:10:21Z
2026-11-04T21:54:08Z APIErrorBudgetSlowBurn resolved 2026-11-04T21:10:21Z
2026-11-04T22:01:58Z DBPoolSaturated pending 2026-11-04T22:01:48.187213033Z 3.389853490532139e-03 2026-11-04T21:10:21Z
2026-11-04T22:06:49Z DBPoolSaturated resolved 2026-11-04T21:10:21Z
2026-11-04T22:25:40Z DBPoolSaturated pending 2026-11-04T22:25:33.187213033Z 6.779638035125306e-03 2026-11-04T21:10:21Z
2026-11-04T22:30:40Z DBPoolSaturated firing 2026-11-04T22:25:33.187213033Z 3.3897845452943018e-03 2026-11-04T22:30:24Z
2026-11-04T22:30:40Z DBPoolSaturated resolved 2026-11-04T22:30:24Z
2026-11-04T22:30:50Z DBPoolSaturated resolved 2026-11-04T22:30:24Z
2026-11-04T22:31:10Z JobsOverdue pending 2026-11-04T22:31:03.187213033Z 3e+00 2026-11-04T22:30:24Z
2026-11-04T22:32:10Z DBPoolSaturated pending 2026-11-04T22:32:03.187213033Z 3.3898649816777792e-03 2026-11-04T22:30:24Z
2026-11-04T22:32:40Z QueueOldestJobAgeHigh pending 2026-11-04T22:32:33.187213033Z 1.32959697e+02 2026-11-04T22:30:24Z
2026-11-04T22:33:10Z JobsOverdue firing 2026-11-04T22:31:03.187213033Z 2e+01 2026-11-04T22:30:24Z
2026-11-04T22:33:10Z JobsOverdue resolved 2026-11-04T22:30:24Z
2026-11-04T22:37:00Z DBPoolSaturated resolved 2026-11-04T22:30:24Z
2026-11-04T22:40:40Z QueueOldestJobAgeCritical pending 2026-11-04T22:40:33.187213033Z 6.12958759e+02 2026-11-04T22:30:24Z
2026-11-04T22:42:40Z QueueOldestJobAgeHigh firing 2026-11-04T22:32:33.187213033Z 7.32958909e+02 2026-11-04T22:30:24Z
2026-11-04T22:42:40Z QueueOldestJobAgeHigh resolved 2026-11-04T22:30:24Z
2026-11-04T22:45:41Z JobsOverdue resolved 2026-11-04T22:30:24Z
2026-11-04T22:45:41Z QueueOldestJobAgeCritical resolved 2026-11-04T22:30:24Z
2026-11-04T22:45:41Z QueueOldestJobAgeHigh resolved 2026-11-04T22:30:24Z
2026-11-04T22:46:21Z TTRErrorBudgetFastBurn firing 2026-11-04T22:46:18.187213033Z 1.5503875968992242e-01 2026-11-04T22:30:24Z
2026-11-04T22:47:31Z TTRErrorBudgetFastBurn resolved 2026-11-04T22:30:24Z
2026-11-04T22:47:41Z TTRErrorBudgetFastBurn firing 2026-11-04T22:47:33.187213033Z 1.5625e-01 2026-11-04T22:30:24Z
2026-11-04T22:48:31Z TTRErrorBudgetFastBurn resolved 2026-11-04T22:30:24Z
2026-11-04T22:49:11Z TTRErrorBudgetFastBurn firing 2026-11-04T22:49:03.187213033Z 1.6535433070866146e-01 2026-11-04T22:30:24Z
2026-11-04T22:49:31Z TTRErrorBudgetFastBurn resolved 2026-11-04T22:30:24Z
2026-11-04T22:58:11Z TTRErrorBudgetFastBurn firing 2026-11-04T22:58:08.187213033Z 1.640625e-01 2026-11-04T22:30:24Z
2026-11-04T22:58:21Z TTRErrorBudgetFastBurn resolved 2026-11-04T22:30:24Z
2026-11-04T23:02:42Z TTRErrorBudgetFastBurn firing 2026-11-04T23:02:38.187213033Z 1.6279069767441856e-01 2026-11-04T22:30:24Z
2026-11-04T23:02:52Z DBPoolSaturated pending 2026-11-04T23:02:48.187213033Z 3.389830508474576e-03 2026-11-04T22:30:24Z
2026-11-04T23:02:52Z TTRErrorBudgetFastBurn resolved 2026-11-04T22:30:24Z
+84 -340
View File
@@ -1,410 +1,154 @@
[ [
[ [
"2026-11-04T19:28:22Z", "2026-11-06T09:25:32Z",
"QueueMetricsStale", "APISLIMissing",
"pending", "pending",
"2026-11-04T19:27:48.187213033Z", "2026-11-06T09:25:28.187213033Z",
"1e+00", "1e+00",
"" ""
], ],
[ [
"2026-11-04T19:28:32Z", "2026-11-06T10:31:47Z",
"QueueMetricsStale", "APISLIMissing",
"resolved",
"",
"",
""
],
[
"2026-11-04T19:28:52Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T19:28:38.187213033Z",
"3.3333333333333326e-01",
""
],
[
"2026-11-04T19:29:22Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
""
],
[
"2026-11-04T20:28:04Z",
"DBPoolSaturated",
"pending", "pending",
"2026-11-04T20:27:58.187213033Z", "2026-11-06T10:31:43.187213033Z",
"1.3601139775513188e-02",
""
],
[
"2026-11-04T20:33:05Z",
"DBPoolSaturated",
"firing",
"2026-11-04T20:27:58.187213033Z",
"3.3969814422903804e-03",
""
],
[
"2026-11-04T20:33:05Z",
"DBPoolSaturated",
"resolved",
"",
"",
""
],
[
"2026-11-04T20:36:05Z",
"DBPoolSaturated",
"resolved",
"",
"",
""
],
[
"2026-11-04T21:00:36Z",
"DBPoolSaturated",
"pending",
"2026-11-04T21:00:33.187213033Z",
"2.0338983050847456e-02",
"2026-11-04T20:58:26Z"
],
[
"2026-11-04T21:05:36Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T20:58:26Z"
],
[
"2026-11-04T21:13:56Z",
"APIErrorBudgetSlowBurn",
"firing",
"2026-11-04T21:13:53.187213033Z",
"3.044280442804428e-02",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:15:26Z",
"QueueMetricsStale",
"pending",
"2026-11-04T21:15:18.187213033Z",
"1e+00", "1e+00",
"2026-11-04T21:10:21Z" "2026-11-06T10:03:01Z"
], ],
[ [
"2026-11-04T21:15:36Z", "2026-11-06T11:08:09Z",
"APISLIMissing",
"pending",
"2026-11-06T11:08:08.187213033Z",
"1e+00",
"2026-11-06T10:03:01Z"
],
[
"2026-11-06T11:34:51Z",
"APIErrorBudgetFastBurn", "APIErrorBudgetFastBurn",
"firing", "firing",
"2026-11-04T21:15:28.187213033Z", "2026-11-06T11:34:48.187213033Z",
"7.369323050556983e-02", "7.220216606498195e-02",
"2026-11-04T21:10:21Z" "2026-11-06T11:29:51Z"
], ],
[ [
"2026-11-04T21:17:26Z", "2026-11-06T11:34:56Z",
"QueueMetricsStale",
"pending",
"2026-11-06T11:34:53.187213033Z",
"1e+00",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:35:11Z",
"APIErrorBudgetSlowBurn",
"firing",
"2026-11-06T11:35:08.187213033Z",
"3.0189959294436908e-02",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:36:56Z",
"QueueMetricsStale", "QueueMetricsStale",
"firing", "firing",
"2026-11-04T21:15:18.187213033Z", "2026-11-06T11:34:53.187213033Z",
"1e+00", "1e+00",
"2026-11-04T21:10:21Z" "2026-11-06T11:29:51Z"
], ],
[ [
"2026-11-04T21:17:26Z", "2026-11-06T11:45:12Z",
"QueueMetricsStale", "QueueMetricsStale",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T21:10:21Z" "2026-11-06T11:29:51Z"
], ],
[ [
"2026-11-04T21:25:37Z", "2026-11-06T11:49:30Z",
"DBPoolSaturated",
"pending",
"2026-11-04T21:25:33.187213033Z",
"1.0169457052687956e-02",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:25:37Z",
"QueueMetricsStale",
"resolved",
"",
"",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:30:07Z",
"APIErrorBudgetFastBurn", "APIErrorBudgetFastBurn",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T21:10:21Z" "2026-11-06T11:29:51Z"
], ],
[ [
"2026-11-04T21:30:37Z", "2026-11-06T12:13:32Z",
"DBPoolSaturated",
"firing",
"2026-11-04T21:25:33.187213033Z",
"3.389807526728633e-03",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:30:37Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:30:47Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T21:54:08Z",
"APIErrorBudgetSlowBurn", "APIErrorBudgetSlowBurn",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T21:10:21Z" "2026-11-06T11:29:51Z"
], ],
[ [
"2026-11-04T22:01:58Z", "2026-11-06T12:53:03Z",
"DBPoolSaturated",
"pending",
"2026-11-04T22:01:48.187213033Z",
"3.389853490532139e-03",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T22:06:49Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T22:25:40Z",
"DBPoolSaturated",
"pending",
"2026-11-04T22:25:33.187213033Z",
"6.779638035125306e-03",
"2026-11-04T21:10:21Z"
],
[
"2026-11-04T22:30:40Z",
"DBPoolSaturated",
"firing",
"2026-11-04T22:25:33.187213033Z",
"3.3897845452943018e-03",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:30:40Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:30:50Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:31:10Z",
"JobsOverdue", "JobsOverdue",
"pending", "pending",
"2026-11-04T22:31:03.187213033Z", "2026-11-06T12:52:58.187213033Z",
"3e+00", "3e+00",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
], ],
[ [
"2026-11-04T22:32:10Z", "2026-11-06T12:54:33Z",
"DBPoolSaturated",
"pending",
"2026-11-04T22:32:03.187213033Z",
"3.3898649816777792e-03",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:32:40Z",
"QueueOldestJobAgeHigh", "QueueOldestJobAgeHigh",
"pending", "pending",
"2026-11-04T22:32:33.187213033Z", "2026-11-06T12:54:28.187213033Z",
"1.32959697e+02", "1.32353293e+02",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
], ],
[ [
"2026-11-04T22:33:10Z", "2026-11-06T12:55:03Z",
"JobsOverdue", "JobsOverdue",
"firing", "firing",
"2026-11-04T22:31:03.187213033Z", "2026-11-06T12:52:58.187213033Z",
"2e+01", "2e+01",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
], ],
[ [
"2026-11-04T22:33:10Z", "2026-11-06T13:02:24Z",
"QueueOldestJobAgeCritical",
"pending",
"2026-11-06T13:02:23.187213033Z",
"6.09947642e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:04:34Z",
"QueueOldestJobAgeHigh",
"firing",
"2026-11-06T12:54:28.187213033Z",
"7.29503946e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:29Z",
"QueueOldestJobAgeCritical",
"firing",
"2026-11-06T13:02:23.187213033Z",
"9.08863892e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:44Z",
"JobsOverdue", "JobsOverdue",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
], ],
[ [
"2026-11-04T22:37:00Z", "2026-11-06T13:07:44Z",
"DBPoolSaturated",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:40:40Z",
"QueueOldestJobAgeCritical",
"pending",
"2026-11-04T22:40:33.187213033Z",
"6.12958759e+02",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:42:40Z",
"QueueOldestJobAgeHigh",
"firing",
"2026-11-04T22:32:33.187213033Z",
"7.32958909e+02",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:42:40Z",
"QueueOldestJobAgeHigh",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:45:41Z",
"JobsOverdue",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:45:41Z",
"QueueOldestJobAgeCritical", "QueueOldestJobAgeCritical",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
], ],
[ [
"2026-11-04T22:45:41Z", "2026-11-06T13:07:44Z",
"QueueOldestJobAgeHigh", "QueueOldestJobAgeHigh",
"resolved", "resolved",
"", "",
"", "",
"2026-11-04T22:30:24Z" "2026-11-06T12:52:17Z"
],
[
"2026-11-04T22:46:21Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T22:46:18.187213033Z",
"1.5503875968992242e-01",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:47:31Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:47:41Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T22:47:33.187213033Z",
"1.5625e-01",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:48:31Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:49:11Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T22:49:03.187213033Z",
"1.6535433070866146e-01",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:49:31Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:58:11Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T22:58:08.187213033Z",
"1.640625e-01",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T22:58:21Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T23:02:42Z",
"TTRErrorBudgetFastBurn",
"firing",
"2026-11-04T23:02:38.187213033Z",
"1.6279069767441856e-01",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T23:02:52Z",
"DBPoolSaturated",
"pending",
"2026-11-04T23:02:48.187213033Z",
"3.389830508474576e-03",
"2026-11-04T22:30:24Z"
],
[
"2026-11-04T23:02:52Z",
"TTRErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-04T22:30:24Z"
] ]
] ]
+8 -7
View File
@@ -1,7 +1,7 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 0.2, "rate": 0.2,
"duration_s": 1195.01, "duration_s": 1195.02,
"scheduled": 240, "scheduled": 240,
"counters": { "counters": {
"accepted": 48, "accepted": 48,
@@ -12,15 +12,16 @@
"dropped": 0 "dropped": 0
}, },
"failures": 0, "failures": 0,
"failures_by_reason": {},
"failure_samples": [], "failure_samples": [],
"latency_ms": { "latency_ms": {
"p50": 4.7, "p50": 9.0,
"p95": 7.0, "p95": 11.9,
"p99": 21.0 "p99": 14.3
}, },
"ttr_ms": { "ttr_ms": {
"p50": 326.5, "p50": 645.7,
"p95": 942.1, "p95": 1260.5,
"p99": 1247.4 "p99": 1276.0
} }
} }
+1 -1
View File
@@ -3,7 +3,7 @@
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0", "api_error_6h": "0",
"ttr_bad_5m": "0.08333333333333326", "ttr_bad_5m": "0",
"ttr_bad_1h": "0", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
+25 -22
View File
@@ -1,37 +1,40 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 0.2, "rate": 0.2,
"duration_s": 715.01, "duration_s": 3715.02,
"scheduled": 144, "scheduled": 744,
"counters": { "counters": {
"accepted": 24, "accepted": 144,
"ready": 24, "ready": 144,
"failed": 25, "failed": 25,
"messages": 115, "messages": 595,
"uploads": 24, "uploads": 144,
"dropped": 0 "dropped": 0
}, },
"failures": 25, "failures": 25,
"failures_by_reason": {
"http_503": 25
},
"failure_samples": [ "failure_samples": [
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/attachments: expected [202], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/attachments: expected [202], received 503" "Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/attachments: expected [202], received 503"
], ],
"latency_ms": { "latency_ms": {
"p50": 5.0, "p50": 6.8,
"p95": 7.7, "p95": 9.7,
"p99": 27.8 "p99": 18.9
}, },
"ttr_ms": { "ttr_ms": {
"p50": 632.0, "p50": 644.0,
"p95": 649.5, "p95": 1254.8,
"p99": 661.3 "p99": 1283.6
} }
} }
+7 -7
View File
@@ -1,9 +1,9 @@
{ {
"active": { "active": {
"api_error_5m": "0.06521739130434782", "api_error_5m": "0.049019607843137254",
"api_error_1h": "0.005059021922428331", "api_error_1h": "0.004570383912248629",
"api_error_30m": "0.010489510489510488", "api_error_30m": "0.008223684210526315",
"api_error_6h": "0.003196590303676079", "api_error_6h": "0.00297441998810232",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
@@ -13,9 +13,9 @@
}, },
"after": { "after": {
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0.021496130696474637", "api_error_1h": "0",
"api_error_30m": "0.04504504504504504", "api_error_30m": "0",
"api_error_6h": "0.012013455069678039", "api_error_6h": "0.00871383757406762",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
@@ -1,7 +1,7 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 0.2, "rate": 0.2,
"duration_s": 1195.02, "duration_s": 1195.01,
"scheduled": 240, "scheduled": 240,
"counters": { "counters": {
"accepted": 48, "accepted": 48,
@@ -12,15 +12,16 @@
"dropped": 0 "dropped": 0
}, },
"failures": 0, "failures": 0,
"failures_by_reason": {},
"failure_samples": [], "failure_samples": [],
"latency_ms": { "latency_ms": {
"p50": 4.8, "p50": 7.1,
"p95": 7.0, "p95": 9.8,
"p99": 8.2 "p99": 11.4
}, },
"ttr_ms": { "ttr_ms": {
"p50": 638.4, "p50": 643.0,
"p95": 945.7, "p95": 963.5,
"p99": 954.5 "p99": 1275.4
} }
} }
+2 -2
View File
@@ -2,9 +2,9 @@
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.04090909090909091", "api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.15748031496062986", "ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
+27 -27
View File
@@ -1,57 +1,57 @@
[ [
{ {
"phase": "warmup", "phase": "warmup",
"started_utc": "2026-11-04T19:28:25Z", "started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-04T20:38:20Z", "finished_utc": "2026-11-06T09:42:56Z",
"duration_s": 4195.3, "duration_s": 3950.1,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "baseline", "phase": "baseline",
"started_utc": "2026-11-04T20:38:20Z", "started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-04T20:58:15Z", "finished_utc": "2026-11-06T10:02:51Z",
"duration_s": 1195.6, "duration_s": 1195.4,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "burst", "phase": "burst",
"started_utc": "2026-11-04T20:58:16Z", "started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-04T21:10:11Z", "finished_utc": "2026-11-06T11:29:41Z",
"duration_s": 715.6, "duration_s": 5209.5,
"injection_utc": "2026-11-04T20:58:26Z", "injection_utc": "2026-11-06T10:03:01Z",
"restore_utc": "2026-11-04T21:00:26Z" "restore_utc": "2026-11-06T10:05:01Z"
}, },
{ {
"phase": "sustained", "phase": "sustained",
"started_utc": "2026-11-04T21:10:11Z", "started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-04T21:30:17Z", "finished_utc": "2026-11-06T11:49:53Z",
"duration_s": 1206.0, "duration_s": 1212.7,
"injection_utc": "2026-11-04T21:10:21Z", "injection_utc": "2026-11-06T11:29:51Z",
"restore_utc": "2026-11-04T21:25:27Z" "restore_utc": "2026-11-06T11:44:55Z"
}, },
{ {
"phase": "resolution_wait", "phase": "resolution_wait",
"started_utc": "2026-11-04T21:30:17Z", "started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-04T22:30:14Z", "finished_utc": "2026-11-06T12:52:06Z",
"duration_s": 3596.5, "duration_s": 3733.0,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "ttr", "phase": "ttr",
"started_utc": "2026-11-04T22:30:14Z", "started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-04T22:45:44Z", "finished_utc": "2026-11-06T13:07:47Z",
"duration_s": 930.8, "duration_s": 940.4,
"injection_utc": "2026-11-04T22:30:24Z", "injection_utc": "2026-11-06T12:52:17Z",
"restore_utc": "2026-11-04T22:45:24Z" "restore_utc": "2026-11-06T13:07:17Z"
}, },
{ {
"phase": "false-positive", "phase": "false-positive",
"started_utc": "2026-11-04T22:45:44Z", "started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-04T23:05:40Z", "finished_utc": "2026-11-06T13:30:24Z",
"duration_s": 1195.4, "duration_s": 1357.4,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
} }
@@ -1,7 +1,7 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 1.0, "rate": 1.0,
"duration_s": 2.26, "duration_s": 2.02,
"scheduled": 3, "scheduled": 3,
"counters": { "counters": {
"accepted": 2, "accepted": 2,
@@ -12,15 +12,16 @@
"dropped": 0 "dropped": 0
}, },
"failures": 0, "failures": 0,
"failures_by_reason": {},
"failure_samples": [], "failure_samples": [],
"latency_ms": { "latency_ms": {
"p50": 4.7, "p50": 5.6,
"p95": 4.7, "p95": 5.6,
"p99": 4.7 "p99": 5.6
}, },
"ttr_ms": { "ttr_ms": {
"p50": 1240.4, "p50": 646.0,
"p95": 1246.1, "p95": 649.3,
"p99": 1246.1 "p99": 649.3
} }
} }
@@ -1,7 +1,7 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 0.2, "rate": 0.2,
"duration_s": 3595.96, "duration_s": 3595.65,
"scheduled": 720, "scheduled": 720,
"counters": { "counters": {
"accepted": 145, "accepted": 145,
@@ -12,15 +12,16 @@
"dropped": 0 "dropped": 0
}, },
"failures": 0, "failures": 0,
"failures_by_reason": {},
"failure_samples": [], "failure_samples": [],
"latency_ms": { "latency_ms": {
"p50": 4.5, "p50": 5.9,
"p95": 7.6, "p95": 8.3,
"p99": 13.1 "p99": 17.7
}, },
"ttr_ms": { "ttr_ms": {
"p50": 1243.8, "p50": 638.6,
"p95": 1268.5, "p95": 962.5,
"p99": 1274.7 "p99": 1259.8
} }
} }
@@ -3,7 +3,7 @@
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0", "api_error_6h": "0",
"ttr_bad_5m": "0.08333333333333326", "ttr_bad_5m": "0",
"ttr_bad_1h": "0", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
@@ -1,12 +0,0 @@
{
"api_error_5m": "0.06521739130434782",
"api_error_1h": "0.005059021922428331",
"api_error_30m": "0.010489510489510488",
"api_error_6h": "0.003196590303676079",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.04901960784313726",
"api_error_1h": "0.004177109440267336",
"api_error_30m": "0.008237232289950576",
"api_error_6h": "0.0029708853238265003",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.049019607843137254",
"api_error_1h": "0.004570383912248629",
"api_error_30m": "0.008223684210526315",
"api_error_6h": "0.00297441998810232",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -1,12 +0,0 @@
{
"api_error_5m": "0",
"api_error_1h": "0.021496130696474637",
"api_error_30m": "0.04504504504504504",
"api_error_6h": "0.012013455069678039",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -2,7 +2,7 @@
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.054344972433709636", "api_error_6h": "0.008868393047179852",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
@@ -2,9 +2,9 @@
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.04090909090909091", "api_error_6h": "0.00871383757406762",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.15748031496062986", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
@@ -2,9 +2,9 @@
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.04090909090909091", "api_error_6h": "0.023575188830395975",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.15748031496062986", "ttr_bad_1h": "0.1586439457023727",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.023575188830395975",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1586439457023727",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.04805225099136926",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.04763005780346821",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -1,12 +0,0 @@
{
"api_error_5m": "0.029850746268656716",
"api_error_1h": "0.024126455906821963",
"api_error_30m": "0.048739495798319335",
"api_error_6h": "0.01360863444392304",
"ttr_bad_5m": "0.08333333333333326",
"ttr_bad_1h": "0.007194244604316502",
"queue_oldest": "0.443175",
"queue_depth": "1",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.050505050505050504",
"api_error_1h": "0.008333333333333333",
"api_error_30m": "0.015060240963855422",
"api_error_6h": "0.010567101091933777",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0.648426",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.046296296296296294",
"api_error_1h": "0.005973715651135006",
"api_error_30m": "0.011547344110854504",
"api_error_6h": "0.010384215991692628",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -1,12 +0,0 @@
{
"api_error_5m": "0.04081632653061224",
"api_error_1h": "0.19291705498602052",
"api_error_30m": "0.3614931237721022",
"api_error_6h": "0.08614232209737828",
"ttr_bad_5m": "0.09341449406517988",
"ttr_bad_1h": "0.009615384615384581",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.024096385542168676",
"api_error_1h": "0.2981878088962109",
"api_error_30m": "0.3943355119825709",
"api_error_6h": "0.0665374677002584",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.010869565217391304",
"api_error_1h": "0.2394179894179894",
"api_error_30m": "0.37319587628865974",
"api_error_6h": "0.06527249683143219",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.024685440383463146",
"ttr_bad_5m": null,
"ttr_bad_1h": "0.15612704507336422",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -2,9 +2,9 @@
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.04438250428816467", "api_error_6h": "0.02447427824640608",
"ttr_bad_5m": null, "ttr_bad_5m": null,
"ttr_bad_1h": "0.15564521484105343", "ttr_bad_1h": "0.16383131398899278",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
+29 -29
View File
@@ -5,57 +5,57 @@ Phases:
[ [
{ {
"phase": "warmup", "phase": "warmup",
"started_utc": "2026-11-04T19:28:25Z", "started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-04T20:38:20Z", "finished_utc": "2026-11-06T09:42:56Z",
"duration_s": 4195.3, "duration_s": 3950.1,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "baseline", "phase": "baseline",
"started_utc": "2026-11-04T20:38:20Z", "started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-04T20:58:15Z", "finished_utc": "2026-11-06T10:02:51Z",
"duration_s": 1195.6, "duration_s": 1195.4,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "burst", "phase": "burst",
"started_utc": "2026-11-04T20:58:16Z", "started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-04T21:10:11Z", "finished_utc": "2026-11-06T11:29:41Z",
"duration_s": 715.6, "duration_s": 5209.5,
"injection_utc": "2026-11-04T20:58:26Z", "injection_utc": "2026-11-06T10:03:01Z",
"restore_utc": "2026-11-04T21:00:26Z" "restore_utc": "2026-11-06T10:05:01Z"
}, },
{ {
"phase": "sustained", "phase": "sustained",
"started_utc": "2026-11-04T21:10:11Z", "started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-04T21:30:17Z", "finished_utc": "2026-11-06T11:49:53Z",
"duration_s": 1206.0, "duration_s": 1212.7,
"injection_utc": "2026-11-04T21:10:21Z", "injection_utc": "2026-11-06T11:29:51Z",
"restore_utc": "2026-11-04T21:25:27Z" "restore_utc": "2026-11-06T11:44:55Z"
}, },
{ {
"phase": "resolution_wait", "phase": "resolution_wait",
"started_utc": "2026-11-04T21:30:17Z", "started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-04T22:30:14Z", "finished_utc": "2026-11-06T12:52:06Z",
"duration_s": 3596.5, "duration_s": 3733.0,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
}, },
{ {
"phase": "ttr", "phase": "ttr",
"started_utc": "2026-11-04T22:30:14Z", "started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-04T22:45:44Z", "finished_utc": "2026-11-06T13:07:47Z",
"duration_s": 930.8, "duration_s": 940.4,
"injection_utc": "2026-11-04T22:30:24Z", "injection_utc": "2026-11-06T12:52:17Z",
"restore_utc": "2026-11-04T22:45:24Z" "restore_utc": "2026-11-06T13:07:17Z"
}, },
{ {
"phase": "false-positive", "phase": "false-positive",
"started_utc": "2026-11-04T22:45:44Z", "started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-04T23:05:40Z", "finished_utc": "2026-11-06T13:30:24Z",
"duration_s": 1195.4, "duration_s": 1357.4,
"injection_utc": "", "injection_utc": "",
"restore_utc": "" "restore_utc": ""
} }
@@ -68,9 +68,9 @@ Final snapshot:
"api_error_5m": "0", "api_error_5m": "0",
"api_error_1h": "0", "api_error_1h": "0",
"api_error_30m": "0", "api_error_30m": "0",
"api_error_6h": "0.04090909090909091", "api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.15748031496062986", "ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
+22 -19
View File
@@ -5,33 +5,36 @@
"scheduled": 240, "scheduled": 240,
"counters": { "counters": {
"accepted": 13, "accepted": 13,
"ready": 12, "ready": 13,
"failed": 182, "failed": 181,
"messages": 192, "messages": 192,
"uploads": 13, "uploads": 13,
"dropped": 0 "dropped": 0
}, },
"failures": 182, "failures": 181,
"failures_by_reason": {
"http_503": 181
},
"failure_samples": [ "failure_samples": [
"ready: Failure: GET /api/v1/attachments/01a1a865-e530-7199-bfbb-f394966c5da1: expected [200], received 401", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 401", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/attachments: expected [202], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503" "Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/attachments: expected [202], received 503"
], ],
"latency_ms": { "latency_ms": {
"p50": 4.8, "p50": 6.9,
"p95": 7.0, "p95": 9.8,
"p99": 22.0 "p99": 16.3
}, },
"ttr_ms": { "ttr_ms": {
"p50": 630.2, "p50": 644.7,
"p95": 644.2, "p95": 1255.0,
"p99": 644.2 "p99": 1255.0
} }
} }
+14 -14
View File
@@ -1,23 +1,23 @@
{ {
"active": { "active": {
"api_error_5m": "0.029850746268656716", "api_error_5m": "0.046296296296296294",
"api_error_1h": "0.024126455906821963", "api_error_1h": "0.005973715651135006",
"api_error_30m": "0.048739495798319335", "api_error_30m": "0.011547344110854504",
"api_error_6h": "0.01360863444392304", "api_error_6h": "0.010384215991692628",
"ttr_bad_5m": "0.08333333333333326", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.007194244604316502", "ttr_bad_1h": "0",
"queue_oldest": "0.443175", "queue_oldest": "0",
"queue_depth": "1", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
"worker_busy": "0" "worker_busy": "0"
}, },
"after": { "after": {
"api_error_5m": "0.04081632653061224", "api_error_5m": "0.010869565217391304",
"api_error_1h": "0.19291705498602052", "api_error_1h": "0.2394179894179894",
"api_error_30m": "0.3614931237721022", "api_error_30m": "0.37319587628865974",
"api_error_6h": "0.08614232209737828", "api_error_6h": "0.06527249683143219",
"ttr_bad_5m": "0.09341449406517988", "ttr_bad_5m": "0",
"ttr_bad_1h": "0.009615384615384581", "ttr_bad_1h": "0",
"queue_oldest": "0", "queue_oldest": "0",
"queue_depth": "0", "queue_depth": "0",
"jobs_overdue": "0", "jobs_overdue": "0",
-79
View File
@@ -1,79 +0,0 @@
# Track 2: полный прогон — TTD/TTR
Прогон: `scripts/lab6_track2_full.py`
Старт: `2026-11-04T19:28:25Z`; завершение: `2026-11-04T23:05:40Z`.
Стенд: 2 API, relay, worker, PostgreSQL, S3, RabbitMQ, OTel Collector,
Prometheus/Loki/Tempo/Grafana. Нагрузка: open-loop 0.2 req/s, 20% uploads,
базовый набор — 2 API-реплики.
## Warmup
- 70 минут, 840 запланированных операций: 672 сообщения, 168 uploads.
- `failed=0`, `dropped=0`; все 168 uploads дошли до `ready`.
- HTTP latency p50/p95/p99 = 5.3 / 10.1 / 15.1 ms.
- TTR p50/p95/p99 = 640.9 / 1246.4 / 1251.9 ms.
- Токен сессии обновлялся за 10 минут до TTL (иначе 70-минутный warmup
получал 401 после 60 минут; этот дефект harness исправлен).
## Burst: 2 минуты PostgreSQL pause
- Инъекция: `20:58:26Z`, восстановление: `21:00:26Z`.
- `DBPoolSaturated` дошёл только до `pending` в `21:00:36Z` (+2m10s),
`resolved` в `21:05:36Z`; **firing/page не было**.
- `APIErrorBudgetFastBurn`/`SlowBurn` не сработали.
- Снимок во время инъекции: `api_error_5m=6.52%`, `api_error_1h=0.51%`,
`api_error_30m=1.05%`; после восстановления `api_error_5m=0`,
`api_error_1h=2.15%`, `api_error_30m=4.50%`.
## Sustained: 15 минут PostgreSQL stop
- Инъекция: `21:10:21Z`; восстановление: `21:25:27Z`;
восстановление readiness/worker подтверждено.
- `APIErrorBudgetSlowBurn`: `firing` в `21:13:56Z` — **TTD 3m35s**
(215 s; alert `active_at=21:13:53Z`).
- `APIErrorBudgetFastBurn`: `firing` в `21:15:36Z` — **TTD 5m15s**
(315 s).
- `QueueMetricsStale`: pending `21:15:26Z`, firing `21:17:26Z`; это
следствие недоступности relay, не отдельный инцидент.
- Снимок во время инъекции: `api_error_5m=2.99%`, `api_error_1h=2.41%`,
`api_error_30m=4.87%`, `queue_oldest=0.44 s`, `queue_depth=1`.
- После восстановления: `api_error_5m=4.08%`, `api_error_1h=19.29%`,
`api_error_30m=36.15%`; `queue_drained=true`.
- `APIErrorBudgetSlowBurn` `resolved` в `21:54:08Z` — **TTR 43m47s**
от инъекции. Это время жизни 6h/30m burn-rate окон, а не время
восстановления процесса; фактическое readiness восстановлено в
`21:25:27Z` (+15m06s).
## TTR: worker остановлен на 15 минут
- Инъекция: `22:30:24Z`; worker восстановлен: `22:45:24Z`.
- `JobsOverdue`: pending `22:31:10Z` (+46 s), firing `22:33:10Z`
(+2m46s); resolved `22:45:41Z` (+17 s после восстановления worker,
+15m17s от инъекции).
- `QueueOldestJobAgeHigh`: pending `22:32:40Z` (+2m16s), firing
`22:42:40Z` (+12m16s); resolved `22:45:41Z`.
- `QueueOldestJobAgeCritical`: pending `22:40:40Z` (+10m16s); до restore
firing не успел; resolved `22:45:41Z`.
- `ttr-load.json`: 180 операций, 20 uploads accepted, 0 ready, 180 failed.
Это ожидаемо: worker остановлен, а клиент ждёт ready только 10 s;
фаза проверяет алерты и восстановление, а не перцентиль TTR.
## False-positive control
- Нормальная нагрузка: `22:45:44Z–23:05:40Z`, новых инъекций нет.
- `TTRErrorBudgetFastBurn` ещё срабатывал в `22:46:21Z–23:02:52Z`
(5 коротких firing/resolved) — это остаточный 1h TTR-бюджет от
предыдущей TTR-фазы, а не новый инцидент. Чистого «нулевого» окна
после TTR не было; ограничение зафиксировано в отчёте.
- Финальный снимок: `api_error_5m=0`, `api_error_30m=0`,
`api_error_1h=0`; `ttr_bad_5m=0`, `ttr_bad_1h=15.75%`;
`queue_oldest=0`, `queue_depth=0`, `jobs_overdue=0`, `worker_busy=0`.
## Ограничения измерений
- Burst и sustained используют один и тот же 1h/6h burn-rate ряд;
остаточные ошибки burst видны в 1h-окне (2.15% после burst), поэтому
sustained TTD — это обнаружение на уже частично израсходованном бюджете.
- `APIErrorBudgetSlowBurn` использует 6h+30m окна; его TTR не равен
времени восстановления сервиса.
- Все компоненты single-node; HA-поведение не заявляется.
+5 -1
View File
@@ -12,6 +12,10 @@
"dropped": 0 "dropped": 0
}, },
"failures": 180, "failures": 180,
"failures_by_reason": {
"attachment did not become ready within test deadline": 20,
"http_429": 160
},
"failure_samples": [ "failure_samples": [
"ready: Failure: attachment did not become ready within test deadline", "ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline", "ready: Failure: attachment did not become ready within test deadline",
@@ -21,7 +25,7 @@
"ready: Failure: attachment did not become ready within test deadline", "ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline", "ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline", "ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline", "Failure: POST /api/v1/chats/01a1b0ea-9b18-78c7-b24f-cecf5fa0fefa/attachments: expected [202], received 429",
"ready: Failure: attachment did not become ready within test deadline" "ready: Failure: attachment did not become ready within test deadline"
], ],
"latency_ms": { "latency_ms": {
+13 -12
View File
@@ -1,26 +1,27 @@
{ {
"base_url": "http://localhost:8080", "base_url": "http://localhost:8080",
"rate": 0.2, "rate": 0.2,
"duration_s": 4195.02, "duration_s": 3596.27,
"scheduled": 840, "scheduled": 720,
"counters": { "counters": {
"accepted": 168, "accepted": 145,
"ready": 168, "ready": 145,
"failed": 0, "failed": 0,
"messages": 672, "messages": 575,
"uploads": 168, "uploads": 145,
"dropped": 0 "dropped": 0
}, },
"failures": 0, "failures": 0,
"failures_by_reason": {},
"failure_samples": [], "failure_samples": [],
"latency_ms": { "latency_ms": {
"p50": 5.3, "p50": 7.9,
"p95": 10.1, "p95": 10.6,
"p99": 15.1 "p99": 18.7
}, },
"ttr_ms": { "ttr_ms": {
"p50": 640.9, "p50": 646.9,
"p95": 1246.4, "p95": 1269.3,
"p99": 1251.9 "p99": 1279.5
} }
} }
-9
View File
@@ -1,9 +0,0 @@
Overdue alert evidence (local, 2026-11-04)
=========================================
Worker stopped, one upload accepted as queued.
At +30s: messenger_jobs_overdue = 0
At +150s: messenger_jobs_overdue = 1
At +180s: JobsOverdue = firing (for: 2m); QueueOldestJobAgeHigh = pending
Worker restarted; queue drained.
After drain: messenger_jobs_overdue = 0; Prometheus alerts = [].
This proves a firing -> resolved transition for the time-to-ready incident.
-26
View File
@@ -1,26 +0,0 @@
# Track 2 preregistered plan
Hypothesis: the multi-window fast burn (1h + 5m, 14.4×) stays silent for a
2-minute PostgreSQL burst and fires for a sustained 15-minute outage; the
slow-burn pair (6h + 30m, 6×) is validated synthetically because this stand
cannot accumulate six hours of live data in one run.
SLO windows: 7 days (Prometheus retention). API availability target 99.5%
(budget 50.4 min); time-to-ready target 99% ≤30s (budget 100.8 min).
Phases:
1. Calibrate open-loop upload/message rate; use ≤50% of measured capacity.
2. Warmup ≥70 min so the 1h burn window is full; baseline 20 min.
3. Burst: pause PostgreSQL 2 min. Expected: no fast page; a counterfactual
5m-only alert would have fired. Record edge SLI and per-route diagnostics.
4. Sustained: stop worker, stop PostgreSQL 15 min, restore both. Expected fast
page around 4m19s after injection; measure TTD and TTR_service separately
from TTR_alert (the 1h window clears later).
5. False-positive controls: 4xx traffic, 1% 5xx for 10 min, a 60–90s blip,
then normal load; count evaluations and firing events.
6. Runbook held-out check: another person gets only the alert name/time and uses
Grafana/Prometheus/Loki/Tempo; record transcript and time-to-cause.
Evidence files: `*-load.json`, `*-alerts.csv`, `*-phases.json`,
`runbook-check.md`, `summary.md`. `promtool test rules` covers slow-burn with
synthetic 6h series; no live slow-burn claim is made.
@@ -1,6 +0,0 @@
Debug burst only — not Track 2 evidence
======================================
This 20-second pause was run without the required ≥70-minute warmup. The 1h/6h
burn windows were therefore unfilled, so fast/slow alerts can appear early.
It proves the harness and CSV wiring, not the preregistered hypothesis. Use the
full `plan.md` sequence for an actual Track 2 result.
@@ -1,5 +0,0 @@
observed_utc,alert,state,active_at,value,injection_utc
2026-11-04T13:37:38Z,TTRErrorBudgetFastBurn,firing,2026-11-04T13:37:38.187213033Z,"""1e+00""",
2026-11-04T13:37:38Z,TTRErrorBudgetSlowBurn,firing,2026-11-04T13:37:38.187213033Z,"""1e+00""",
2026-11-04T13:37:43Z,APIErrorBudgetSlowBurn,firing,2026-11-04T13:37:43.187213033Z,"""3.896103896103897e-02""",
2026-11-04T13:37:48Z,APIErrorBudgetFastBurn,firing,2026-11-04T13:37:48.187213033Z,"""8.641975308641976e-02""",
1 observed_utc alert state active_at value injection_utc
2 2026-11-04T13:37:38Z TTRErrorBudgetFastBurn firing 2026-11-04T13:37:38.187213033Z "1e+00"
3 2026-11-04T13:37:38Z TTRErrorBudgetSlowBurn firing 2026-11-04T13:37:38.187213033Z "1e+00"
4 2026-11-04T13:37:43Z APIErrorBudgetSlowBurn firing 2026-11-04T13:37:43.187213033Z "3.896103896103897e-02"
5 2026-11-04T13:37:48Z APIErrorBudgetFastBurn firing 2026-11-04T13:37:48.187213033Z "8.641975308641976e-02"
@@ -1,36 +0,0 @@
{
"base_url": "http://localhost:8080",
"rate": 0.5,
"duration_s": 39.27,
"scheduled": 20,
"counters": {
"accepted": 8,
"ready": 8,
"failed": 12,
"messages": 0,
"uploads": 20
},
"failures": 12,
"failure_samples": [
"Failure: GET /api/v1/attachments/01a1a6c7-7870-7dcc-8438-627d4ec8d291: expected [200], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1a6c7-68b6-783e-89fb-eb78cfc4f8de/attachments: expected [202], received 503"
],
"latency_ms": {
"p50": null,
"p95": null,
"p99": null
},
"ttr_ms": {
"p50": 1264.4,
"p95": 1281.0,
"p99": 1281.0
}
}
@@ -1,6 +0,0 @@
{
"scenario": "burst",
"injection_utc": "2026-11-04T13:37:33Z",
"restore_utc": "2026-11-04T13:37:53Z",
"duration_seconds": 20
}
+63
View File
@@ -0,0 +1,63 @@
# Track 2: TTD/TTR
Полный live-прогон выполнен 2026-11-06 (warmup 60m). Наблюдаемые TTD/TTR
приведены ниже; 6h warmup и реальный 7-дневный бюджет не измерялись.
## Теоретические TTD при 100% ошибок
| Alert | Окна | Порог | Теоретический TTD |
|---|---|---:|---:|
| APIErrorBudgetFastBurn | 1h + 5m | 7.2% | ≈4.3 мин |
| APIErrorBudgetSlowBurn | 6h + 30m | 3% | ≈10.8 мин |
Если 6h-окно содержит только ~1ч45м истории, slow-алерт выглядит как ≈3.2 мин;
это неполное окно, а не доказательство более быстрого обнаружения.
## TTR
TTR SLI теперь использует good = `bucket{le="30.0"}` и bad =
`messenger_jobs_ttr_missed_total`; bad_ratio = bad/(good+bad). Guard:
≥10 событий good+bad за 5m для fast, ≥30 за 30m для slow. Sweeper в relay
помечает задачу как missed через 30s, поэтому алерт может сработать во время
простоя worker, а не только после восстановления.
## False-positive
`checks/alert-audit.txt` считает firing по фазам из `alerts.csv`. В
завершающей 20-минутной фазе новых firing не было; это ограниченное
наблюдение, не универсальная оценка FP.
## Ограничения
- Полный 6h slow-burn и 7d-бюджет не измерялись.
- Старые TTD/TTR числа из прогонов до изменения SLI не используются.
## P0 isolated worker outage (15 min)
`checks/ttr-worker-15m.txt` (HEAD `935b228`): непрерывная нагрузка новых
пользователей каждые 90 с. `ratio5` первые ~90 с отсутствовал, затем был <1
и стал 1 примерно с 330-й секунды; `TTRErrorBudgetFastBurn` firing с ~2 мин,
`JobsOverdue` firing, `QueueOldestJobAgeHigh` firing к ~12 мин.
После старта worker `overdue=0`, `ratio5` снижается; FastBurn resolved примерно
через 4 минуты. `TTRErrorBudgetSlowBurn` остаётся firing из-за 1h/6h окна —
это ожидаемое медленное окно, не ошибка.
## Полный прогон (2026-11-06)
- Warmup 60m, baseline 20m, burst 2m, пауза 60m, sustained 15m,
resolution 60m, TTR 15m, false-positive 20m; `Aborted=False`.
- API: FastBurn firing 11:34:51Z (инъекция 11:29:51Z) → TTD 5m00s;
SlowBurn firing 11:35:11Z → 5m20s (на 60m warmup, не 6h theory).
От restore 11:44:55Z до resolved: FastBurn 4m35s, SlowBurn 28m37s.
- Burst: page/ticket 0; 144 ready, 0 401, 25 клиентских 503 во время pause.
- TTR: JobsOverdue firing 12:55:03Z (+2m46s), QueueOldestJobAgeHigh
firing 13:04:34Z (+12m17s); restore 13:07:17Z; Critical fired
13:07:29Z — через 12s **после restore**, поэтому это не обнаружение до
восстановления; все resolved 13:07:44Z (~27s после restore). Injection
12:52:17Z записан после остановки worker.
- False-positive: 13:07:47–13:30:24Z, firing 0.
- Ограничение: `TTRErrorBudgetFastBurn` в полном TTR-фазе не попал в
`alerts.csv`: 20 missed jobs теряются на фоне большого 1h good-окна;
изолированный 15m worker-down с непрерывной нагрузкой его показывает.
-22
View File
@@ -1,22 +0,0 @@
# Заменённые прогоны серии трека 1
Оба каталога сохранены как история: в них видны дефекты, которые нашло ревью.
Действующие артефакты лежат в `evidence/track1/` и воспроизводятся
`scripts/track1_series.sh`.
## run1-wrong-budgets — бюджеты хранилищ записаны, но не применены
`scripts/track1_scaling.sh` перенастраивал только API (`compose up -d --no-deps api`),
поэтому PostgreSQL продолжал работать с действующими 0.50 CPU / 384 MiB, тогда как в
`profile-*.json` попадало `512M` (серии `r`/`g`/`pool`) и `1.00` CPU (контроль
`db1cpu`). Контроль удвоения CPU БД в этом прогоне измерением не был.
## run2-host-client — клиент на хосте терял соединения
Бюджеты здесь уже применялись и проверялись по `docker inspect`, но генератор
работал на хосте через проброс порта. Под шквалом новых соединений forwarder хоста
отклонял их: 4 450-26 520 отказов на профиль (4-22 %), при этом в статистике HAProxy
`hrsp_5xx=0`, а в логах API нет ошибок — то есть отказы клиентские, а не от стенда
(разбор и контроль: `evidence/path-overhead/`). Из-за разного числа успешных запросов
загрузка PostgreSQL по профилям несопоставима, поэтому прогон заменён серией с
клиентом внутри VM (`CLIENT=vm`), где отказов нет.
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.012,
"concurrency": 8,
"successful_requests": 98492,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1641.212,
"successful_latency_ms": {
"p50": 4.085,
"p95": 8.787,
"p99": 23.973
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.01,
"concurrency": 8,
"successful_requests": 96941,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1615.408,
"successful_latency_ms": {
"p50": 4.348,
"p95": 8.823,
"p99": 20.46
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.011,
"concurrency": 8,
"successful_requests": 99970,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1665.873,
"successful_latency_ms": {
"p50": 4.168,
"p95": 8.323,
"p99": 21.636
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.017,
"concurrency": 8,
"successful_requests": 99132,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1651.746,
"successful_latency_ms": {
"p50": 4.094,
"p95": 8.631,
"p99": 24.272
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.012,
"concurrency": 8,
"successful_requests": 97133,
"failed_requests": 222,
"error_ratio": 0.00228,
"successful_rps": 1618.552,
"successful_latency_ms": {
"p50": 4.394,
"p95": 8.205,
"p99": 20.61
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.027,
"concurrency": 8,
"successful_requests": 93849,
"failed_requests": 2,
"error_ratio": 2.1e-05,
"successful_rps": 1563.449,
"successful_latency_ms": {
"p50": 4.464,
"p95": 8.965,
"p99": 22.758
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.015,
"concurrency": 8,
"successful_requests": 100860,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1680.576,
"successful_latency_ms": {
"p50": 4.005,
"p95": 8.354,
"p99": 22.526
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.011,
"concurrency": 8,
"successful_requests": 94054,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1567.279,
"successful_latency_ms": {
"p50": 4.474,
"p95": 9.495,
"p99": 20.649
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1,17 +0,0 @@
{
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 60.0,
"elapsed_seconds": 60.013,
"concurrency": 8,
"successful_requests": 92928,
"failed_requests": 178,
"error_ratio": 0.001912,
"successful_rps": 1548.476,
"successful_latency_ms": {
"p50": 4.633,
"p95": 8.8,
"p99": 18.978
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
@@ -1 +0,0 @@
{"label":"db1cpu","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"1.0","postgres_mem_limit":"384M","postgres_max_conns":10}
@@ -1 +0,0 @@
{"label":"g05","replicas":2,"total_cpu":0.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10}
@@ -1 +0,0 @@
{"label":"g10","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10}
@@ -1 +0,0 @@
{"label":"g15","replicas":2,"total_cpu":1.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10}
@@ -1 +0,0 @@
{"label":"pool10","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10}
@@ -1 +0,0 @@
{"label":"pool5","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":5}
@@ -1 +0,0 @@
{"label":"r1","replicas":1,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10}

Some files were not shown because too many files have changed in this diff Show More