lab6 done

This commit is contained in:
Khakimov Dmitrij
2026-11-18 21:37:25 +03:00
parent 470d9d6f1e
commit 4ab9b0ef9a
158 changed files with 21115 additions and 52 deletions
+22 -3
View File
@@ -1,5 +1,24 @@
# Доказательства
# Доказательства lab6
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
Все результаты получены на стенде этого репозитория. Данные синтетические.
Времена JSON указаны в UTC; аппаратная конфигурация и исходный commit — lab6-environment.json.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
| Файл | Проверка |
| --- | --- |
| lab6-validation.txt | Offline contract, OpenAPI и Go race tests |
| lab6-final-validation.txt | Повторная проверка контрактов после завершения изменений |
| lab6-smoke.txt | Публичный API, включая асинхронные вложения |
| lab6-persistence.txt, lab6-container-events.txt | Сохранность и scope restart хранилищ |
| lab6-failover.txt, lab6-failover-containers.json | Две реплики, отказ одной, данные/сессия и восстановление |
| lab6-provisioning.json | Пять targets UP, 15 панелей, 18 query, metric label policy |
| lab6-faults.json, lab6-faults-run.txt | Успешный полный fault suite |
| lab6-incident-metrics.json, lab6-incidents-summary.json | Сохранённые наблюдения worker/S3/DB |
| trace-*.json, logs-*.json | Реальные связанные spans и структурные логи из Tempo/Loki |
| lab6-backend-outage.json, lab6-backend-run.txt | Работа API при отказе Tempo, queue/RAM и потери traces |
| lab6-research.json, lab6-research.csv, lab6-research-summary.json | Восемь опытов off/on/sampling, raw summaries, CPU/RAM |
| lab6-research-run.txt | Журнал завершённого исследования |
| lab6-runtime-state.json | Состояние контейнеров после проверок |
Файлы *-initial.* содержат начальные или прежние прогоны, включая обнаруженные ошибки.
Они не заменяют успешные итоговые журналы. Подробнее: ../INCIDENTS.md и ../RESEARCH.md.
Секреты, токены, тела сообщений, bytes изображений и signed URLs сюда не сохраняются.
+220
View File
@@ -0,0 +1,220 @@
{
"started_at": "2026-11-11T07:08:27.295682+00:00",
"before": {
"failed_spans": 10491.0,
"refused_spans": 0.0,
"queued_batches": 0.0,
"rss_bytes": 81518592.0
},
"during": [
{
"seconds": 0.01,
"failed_spans": 10491.0,
"refused_spans": 0.0,
"queued_batches": 0.0,
"rss_bytes": 81518592.0
},
{
"seconds": 5.2,
"failed_spans": 10491.0,
"refused_spans": 0.0,
"queued_batches": 4.0,
"rss_bytes": 81592320.0
},
{
"seconds": 10.52,
"failed_spans": 10491.0,
"refused_spans": 0.0,
"queued_batches": 9.0,
"rss_bytes": 81612800.0
},
{
"seconds": 15.79,
"failed_spans": 10491.0,
"refused_spans": 0.0,
"queued_batches": 14.0,
"rss_bytes": 81612800.0
},
{
"seconds": 20.94,
"failed_spans": 10559.0,
"refused_spans": 0.0,
"queued_batches": 18.0,
"rss_bytes": 81616896.0
},
{
"seconds": 26.07,
"failed_spans": 10659.0,
"refused_spans": 0.0,
"queued_batches": 22.0,
"rss_bytes": 81666048.0
},
{
"seconds": 31.28,
"failed_spans": 10659.0,
"refused_spans": 0.0,
"queued_batches": 27.0,
"rss_bytes": 81666048.0
}
],
"successful_writes": 35,
"after": {
"failed_spans": 10803.0,
"refused_spans": 0.0,
"queued_batches": 0.0,
"rss_bytes": 81674240.0
},
"retained_request_traces": 32,
"missing_request_traces": 3,
"exporter_failed_spans_delta": 312.0,
"receiver_refused_spans_delta": 0.0,
"collector": {
"oom": false,
"memory_limit": 201326592
},
"status": "PASS",
"finished_at": "2026-11-11T07:09:19.947185+00:00",
"request_trace_results": [
{
"trace_id": "004adff807639444e55202464ea93fe3",
"found": false
},
{
"trace_id": "08df5dc321e96dc41068b1be56f04687",
"found": true
},
{
"trace_id": "1aeaee387a6b2cbb4ad320c3e34d7b3d",
"found": true
},
{
"trace_id": "1b25416590b8cd69b8063e2fe54d5da6",
"found": true
},
{
"trace_id": "2ea7a14a909ba468bfbe045fcc9ef556",
"found": true
},
{
"trace_id": "332601b1543a4a16827ef181d88efb04",
"found": true
},
{
"trace_id": "3a0f8d48655b7190e4afab69bd9a7357",
"found": true
},
{
"trace_id": "3ae8ac314578b01a61d4f4889d274467",
"found": true
},
{
"trace_id": "41b19f9f0aecc4f4805f90e1c4901384",
"found": true
},
{
"trace_id": "4a2480d683cfbff700d3276502e3f6d0",
"found": true
},
{
"trace_id": "4b9b780f232470232ff61e6e8ea0031e",
"found": true
},
{
"trace_id": "51462d539eb2514fa66727227a3e30c0",
"found": true
},
{
"trace_id": "57b44fd53e4383bfd896fce7c4cb6fa5",
"found": true
},
{
"trace_id": "7281f6cbd7790df5948f7b03fef14d7a",
"found": true
},
{
"trace_id": "7cd8d3c5bec5684f4cadb7569cc40d04",
"found": true
},
{
"trace_id": "7e2ac3261a8a6745667b08c9e6e20314",
"found": true
},
{
"trace_id": "8074d021c476f9ce1eb64c2141e24ffa",
"found": true
},
{
"trace_id": "865556f2adf8a006995f6895c4a82513",
"found": true
},
{
"trace_id": "973fe7d2582609896fb1166313eb219c",
"found": true
},
{
"trace_id": "9d28d77ca28cf24aa3e6fe1607c408a2",
"found": true
},
{
"trace_id": "9fc10f8741f5bf971b80c7d58d7bf936",
"found": true
},
{
"trace_id": "ac5f5b02318a8c2f4a1f4ba129339f56",
"found": true
},
{
"trace_id": "ac8bc1e2d842b25238518ee0a872ae4d",
"found": true
},
{
"trace_id": "ad3e00cc2507be3a6af4cce1ff732311",
"found": true
},
{
"trace_id": "b26abeb379b6568c25f6d0e570978bc6",
"found": false
},
{
"trace_id": "b92c8b1f65d944e03623ca05cd013dd5",
"found": true
},
{
"trace_id": "bc795f70921ad071cebb4ce9e053eebe",
"found": true
},
{
"trace_id": "c60cfe77fa24afb2477a776bcf5abd71",
"found": false
},
{
"trace_id": "d3359fdbc04ddaa1d3a6275fd4908361",
"found": true
},
{
"trace_id": "dc13a3387339133eea087b6b1371cc46",
"found": true
},
{
"trace_id": "df4b8b322e294fe8b8caf1fe3e14bd5b",
"found": true
},
{
"trace_id": "e5c7704f60b9e8c8d33b91037737eeaa",
"found": true
},
{
"trace_id": "f0fb0084dd1ed1a177eb297ebf213ef5",
"found": true
},
{
"trace_id": "f11bb8dc1d60dd494bf0ed79d834338a",
"found": true
},
{
"trace_id": "f953829e6b5b3bfc853fb866a331a1b4",
"found": true
}
],
"verification_source": "201 message http.request logs in exact incident time window; query traces again by ID"
}
+1
View File
@@ -0,0 +1 @@
{"status": "PASS", "successful_writes": 35, "retained_request_traces": 32, "missing_request_traces": 3, "exporter_failed_spans_delta": 312.0}
+60
View File
@@ -0,0 +1,60 @@
1794339137 kill mtusi2026lab6-minio-1
1794339137 kill mtusi2026lab6-loki-1
1794339137 kill mtusi2026lab6-redis-1
1794339137 kill mtusi2026lab6-api-1
1794339137 kill mtusi2026lab6-prometheus-1
1794339137 kill mtusi2026lab6-collector-1
1794339137 kill mtusi2026lab6-grafana-1
1794339137 kill mtusi2026lab6-api-2
1794339137 kill mtusi2026lab6-gateway-1
1794339137 kill mtusi2026lab6-worker-1
1794339137 kill mtusi2026lab6-postgres-1
1794339137 kill mtusi2026lab6-tempo-1
1794339137 stop mtusi2026lab6-minio-1
1794339137 die mtusi2026lab6-minio-1
1794339137 stop mtusi2026lab6-collector-1
1794339137 die mtusi2026lab6-collector-1
1794339137 stop mtusi2026lab6-redis-1
1794339137 die mtusi2026lab6-redis-1
1794339138 stop mtusi2026lab6-grafana-1
1794339138 die mtusi2026lab6-grafana-1
1794339138 stop mtusi2026lab6-prometheus-1
1794339138 die mtusi2026lab6-prometheus-1
1794339138 stop mtusi2026lab6-worker-1
1794339138 die mtusi2026lab6-postgres-1
1794339138 stop mtusi2026lab6-postgres-1
1794339138 die mtusi2026lab6-worker-1
1794339138 stop mtusi2026lab6-tempo-1
1794339138 die mtusi2026lab6-tempo-1
1794339138 stop mtusi2026lab6-gateway-1
1794339138 die mtusi2026lab6-gateway-1
1794339138 start mtusi2026lab6-minio-1
1794339138 restart mtusi2026lab6-minio-1
1794339138 start mtusi2026lab6-collector-1
1794339138 restart mtusi2026lab6-collector-1
1794339138 stop mtusi2026lab6-loki-1
1794339138 die mtusi2026lab6-loki-1
1794339138 start mtusi2026lab6-redis-1
1794339138 restart mtusi2026lab6-redis-1
1794339138 start mtusi2026lab6-grafana-1
1794339138 restart mtusi2026lab6-grafana-1
1794339138 start mtusi2026lab6-postgres-1
1794339138 restart mtusi2026lab6-postgres-1
1794339138 start mtusi2026lab6-worker-1
1794339138 restart mtusi2026lab6-worker-1
1794339138 start mtusi2026lab6-prometheus-1
1794339138 restart mtusi2026lab6-prometheus-1
1794339138 start mtusi2026lab6-gateway-1
1794339138 restart mtusi2026lab6-gateway-1
1794339139 start mtusi2026lab6-tempo-1
1794339139 restart mtusi2026lab6-tempo-1
1794339139 start mtusi2026lab6-loki-1
1794339139 restart mtusi2026lab6-loki-1
1794339140 stop mtusi2026lab6-api-1
1794339140 die mtusi2026lab6-api-1
1794339140 stop mtusi2026lab6-api-2
1794339140 die mtusi2026lab6-api-2
1794339140 start mtusi2026lab6-api-1
1794339140 restart mtusi2026lab6-api-1
1794339140 start mtusi2026lab6-api-2
1794339140 restart mtusi2026lab6-api-2
+13
View File
@@ -0,0 +1,13 @@
{
"at": "2026-11-10T19:28:02.037325+00:00",
"host": "macOS-26.6.2-arm64-arm-64bit",
"architecture": "arm64",
"docker": {
"cpus": 2,
"memory_bytes": 2053644288,
"server_version": "29.5.2"
},
"base_commit": "470d9d6f1e4fe4f594e37c2ba59550ee5ca54fc1",
"note": "Old mtusi-lab4 and mtusi-lab5 Swarm stacks removed at user request before runtime experiments; persistent volumes retained. Standalone postgres remains running.",
"old_stacks_removed_at": "2026-11-10T19:29:34.767211+00:00"
}
+40
View File
@@ -0,0 +1,40 @@
{
"at": "2026-11-11T07:11:03.337621+00:00",
"before": [
{
"name": "/mtusi2026lab6-api-1",
"alias": "00403456e233",
"status": "running"
},
{
"name": "/mtusi2026lab6-api-2",
"alias": "60b77a464203",
"status": "running"
}
],
"after": [
{
"name": "/mtusi2026lab6-api-1",
"alias": "00403456e233",
"status": "running"
},
{
"name": "/mtusi2026lab6-api-2",
"alias": "60b77a464203",
"status": "exited"
}
],
"exit_code": 0,
"restored": [
{
"name": "/mtusi2026lab6-api-1",
"alias": "00403456e233",
"status": "running"
},
{
"name": "/mtusi2026lab6-api-2",
"alias": "60b77a464203",
"status": "running"
}
]
}
+7
View File
@@ -0,0 +1,7 @@
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18086"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 118, "failed_attempts": 5, "first_recovery_seconds": 4.062}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
+7
View File
@@ -0,0 +1,7 @@
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18086"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 117, "failed_attempts": 4, "first_recovery_seconds": 3.382}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
File diff suppressed because it is too large Load Diff
+13
View File
@@ -0,0 +1,13 @@
Worker outage
DB lock
Telemetry backend outage
Traceback (most recent call last):
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 140, in <module>
main()
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 124, in main
report['correlation'] = [collect_trace(t) for t in (traces[0], traces[-1])]
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 124, in <listcomp>
report['correlation'] = [collect_trace(t) for t in (traces[0], traces[-1])]
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 38, in collect_trace
raise RuntimeError('trace/log correlation not found in backend')
RuntimeError: trace/log correlation not found in backend
@@ -0,0 +1,46 @@
{
"started_at": "2026-11-11T06:52:37.598456+00:00",
"cases": {
"s3_retry": {
"alerts_during": [
{
"labels": {
"alertname": "QueueLagGrowing",
"severity": "warning"
},
"annotations": {
"description": "Inspect worker capacity, busy, outcomes and dependency spans; see RUNBOOK.md.",
"runbook_url": "http://localhost:13000/d/messenger/messenger-observability",
"summary": "Oldest unfinished attachment exceeds 10 seconds"
},
"state": "firing",
"activeAt": "2026-11-11T06:52:54.758725496Z",
"value": "7.8294858e+01"
}
],
"jobs": [
{
"metric": {
"__name__": "messenger_jobs_total",
"deployment_environment_name": "lab",
"exported_instance": "e2edd33d8b58",
"exported_job": "messenger-worker",
"instance": "collector:8889",
"job": "messenger",
"job_type": "attachment.process.v1",
"otel_scope_name": "messenger",
"outcome": "storage_unavailable",
"service_instance_id": "e2edd33d8b58",
"service_name": "messenger-worker",
"service_version": "lab6"
},
"value": [
1794380041.365,
"24"
]
}
]
}
},
"finished_at": "2026-11-11T06:54:02.143528+00:00"
}
+13
View File
@@ -0,0 +1,13 @@
Worker outage
Traceback (most recent call last):
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 148, in <module>
main()
File "/Users/dkhakimovig/mtusi2026lab6/scripts/observability_faults.py", line 78, in main
c.wait_ready(actor, att)
File "/Users/dkhakimovig/mtusi2026lab6/tests/client.py", line 196, in wait_ready
att = self.call('GET','/api/v1/attachments/'+att['id'],actor=actor,schema='Attachment')['json']
File "/Users/dkhakimovig/mtusi2026lab6/tests/client.py", line 132, in call
check(status in allowed, method + ' ' + path.split('?')[0] + ': expected ' + str(allowed) + ', received ' + str(status))
File "/Users/dkhakimovig/mtusi2026lab6/tests/client.py", line 24, in check
raise Failure(message)
client.Failure: GET /api/v1/attachments/e377e191-b942-47fa-b691-eefb232588d7: expected [200], received 503
+4
View File
@@ -0,0 +1,4 @@
Worker outage
DB lock
Telemetry backend outage
{"status": "PASS", "cases": ["s3_retry", "worker_stop", "db_lock", "tempo_stop"]}
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
$ make check validate PYTHON=.venv/bin/python
.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
/Users/dkhakimovig/mtusi2026lab6/.venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
exit=0
File diff suppressed because it is too large Load Diff
+40
View File
@@ -0,0 +1,40 @@
{
"queue_first_firing_seconds": 20.18,
"queue_max_observed_age_seconds": 26.179077,
"ready_jobs": 6,
"db_http_status_counts": {
"503": 28
},
"db_max_latency_seconds": 2.0508444580000003,
"db_recovery_poll_count": 10,
"trace_summary": [
{
"trace_id": "3c112fa1787d40898e457423046b2e97",
"span_names": {
"POST /api/v1/chats/{chat_id}/attachments": 1,
"postgresql SELECT": 13,
"postgresql BEGIN": 9,
"s3 PUT": 10,
"postgresql INSERT": 3,
"postgresql COMMIT": 9,
"attachments publish": 4,
"attachments process": 4,
"postgresql UPDATE": 19,
"s3 download and image render": 4,
"s3 GET": 4
},
"longest_span_seconds": 0.169544764,
"log_streams": 9
},
{
"trace_id": "dbc9b2dc91404a1fa7fae889b013bb34",
"span_names": {
"postgresql SELECT": 5,
"postgresql BEGIN": 1,
"POST /api/v1/chats/{chat_id}/messages": 1
},
"longest_span_seconds": 2.008227803,
"log_streams": 1
}
]
}
+6
View File
@@ -0,0 +1,6 @@
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18086"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
+4
View File
@@ -0,0 +1,4 @@
$ python3 scripts/verify_observability.py
{"status": "PASS", "panels": 15, "queries": 18, "label_policy": "PASS"}
exit=0
+120
View File
@@ -0,0 +1,120 @@
{
"at": "2026-11-11T07:14:35.828099+00:00",
"status": "PASS",
"targets": {
"collector": "up",
"loki": "up",
"messenger": "up",
"prometheus": "up",
"tempo": "up"
},
"dashboard_uid": "messenger",
"panel_count": 15,
"queries": [
{
"panel": "API RPS (business routes)",
"query": "sum(rate(messenger_http_requests_total[1m])) by (route)",
"series": 7
},
{
"panel": "API 5xx / all business requests",
"query": "(sum(rate(messenger_http_requests_total{status_class=\"5xx\"}[1m])) or vector(0)) / clamp_min(sum(rate(messenger_http_requests_total[1m])),0.001)",
"series": 1
},
{
"panel": "API p50 / p95 / p99 (all replicas, histogram)",
"query": "histogram_quantile(0.5,sum(rate(messenger_http_duration_seconds_bucket[1m])) by(le))",
"series": 1
},
{
"panel": "API p50 / p95 / p99 (all replicas, histogram)",
"query": "histogram_quantile(0.95,sum(rate(messenger_http_duration_seconds_bucket[1m])) by(le))",
"series": 1
},
{
"panel": "API p50 / p95 / p99 (all replicas, histogram)",
"query": "histogram_quantile(0.99,sum(rate(messenger_http_duration_seconds_bucket[1m])) by(le))",
"series": 1
},
{
"panel": "Worker job outcomes per second",
"query": "sum(rate(messenger_jobs_total[1m])) by(outcome)",
"series": 1
},
{
"panel": "Worker job p95 duration",
"query": "histogram_quantile(0.95,sum(rate(messenger_job_duration_seconds_bucket[1m])) by(le,outcome))",
"series": 1
},
{
"panel": "Time from durable acceptance to ready p95",
"query": "histogram_quantile(0.95,sum(rate(messenger_attachment_ready_seconds_bucket[1m])) by(le))",
"series": 1
},
{
"panel": "Authoritative queue depth (max across observers)",
"query": "max(messenger_queue_depth)",
"series": 1
},
{
"panel": "Oldest unfinished job age",
"query": "max(messenger_queue_oldest_age_seconds)",
"series": 1
},
{
"panel": "DB pool acquired / acquiring / max",
"query": "messenger_db_pool_used",
"series": 3
},
{
"panel": "DB pool acquired / acquiring / max",
"query": "messenger_db_pool_waiting",
"series": 3
},
{
"panel": "DB pool acquired / acquiring / max",
"query": "messenger_db_pool_max",
"series": 3
},
{
"panel": "Worker saturation busy / capacity",
"query": "sum(messenger_worker_busy{service_name=\"messenger-worker\"}) / clamp_min(sum(messenger_worker_capacity{service_name=\"messenger-worker\"}),1)",
"series": 1
},
{
"panel": "Go runtime reserved memory (MemStats.Sys)",
"query": "messenger_process_memory_bytes",
"series": 3
},
{
"panel": "Process CPU seconds / second",
"query": "rate(messenger_process_cpu_seconds_total[1m])",
"series": 3
},
{
"panel": "SDK failed telemetry export operations",
"query": "messenger_telemetry_export_errors",
"series": 3
},
{
"panel": "Exporter failed spans (attempts, not unique loss)",
"query": "sum(otelcol_exporter_send_failed_spans_total) by (exporter)",
"series": 1
}
],
"metric_series_checked": 2554,
"required_metrics": [
"messenger_attachment_ready_seconds_bucket",
"messenger_db_pool_used",
"messenger_db_pool_waiting",
"messenger_http_duration_seconds_bucket",
"messenger_http_requests_total",
"messenger_job_duration_seconds_bucket",
"messenger_jobs_total",
"messenger_queue_depth",
"messenger_queue_oldest_age_seconds",
"messenger_worker_busy",
"messenger_worker_capacity"
],
"label_policy": "PASS"
}
+16
View File
@@ -0,0 +1,16 @@
Running off repetition 1
{"configuration": "off", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 11.934, "p95": 29.423, "p99": 42.462}, "trace_retention": {"read": {"sent": 90, "found": 0}, "write": {"sent": 18, "found": 0}, "upload": {"sent": 6, "found": 0}, "client_error": {"sent": 6, "found": 0}}}
Running full repetition 1
{"configuration": "full", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 11.856, "p95": 31.41, "p99": 42.052}, "trace_retention": {"read": {"sent": 90, "found": 90}, "write": {"sent": 18, "found": 18}, "upload": {"sent": 6, "found": 6}, "client_error": {"sent": 6, "found": 6}}}
Running ten_percent repetition 1
{"configuration": "ten_percent", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 9.991, "p95": 52.789, "p99": 168.924}, "trace_retention": {"read": {"sent": 90, "found": 13}, "write": {"sent": 18, "found": 2}, "upload": {"sent": 6, "found": 1}, "client_error": {"sent": 6, "found": 1}}}
Running balanced repetition 1
{"configuration": "balanced", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 10.423, "p95": 30.254, "p99": 52.116}, "trace_retention": {"read": {"sent": 90, "found": 54}, "write": {"sent": 18, "found": 10}, "upload": {"sent": 6, "found": 4}, "client_error": {"sent": 6, "found": 4}}}
Running balanced repetition 2
{"configuration": "balanced", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 11.346, "p95": 37.555, "p99": 72.706}, "trace_retention": {"read": {"sent": 90, "found": 41}, "write": {"sent": 18, "found": 7}, "upload": {"sent": 6, "found": 2}, "client_error": {"sent": 6, "found": 3}}}
Running ten_percent repetition 2
{"configuration": "ten_percent", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 12.281, "p95": 42.42, "p99": 63.216}, "trace_retention": {"read": {"sent": 90, "found": 12}, "write": {"sent": 18, "found": 4}, "upload": {"sent": 6, "found": 0}, "client_error": {"sent": 6, "found": 1}}}
Running full repetition 2
{"configuration": "full", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 12.379, "p95": 31.356, "p99": 45.834}, "trace_retention": {"read": {"sent": 90, "found": 90}, "write": {"sent": 18, "found": 18}, "upload": {"sent": 6, "found": 6}, "client_error": {"sent": 6, "found": 6}}}
Running off repetition 2
{"configuration": "off", "unexpected_errors": 0, "all_request_latency_ms": {"p50": 10.728, "p95": 30.012, "p99": 63.853}, "trace_retention": {"read": {"sent": 90, "found": 0}, "write": {"sent": 18, "found": 0}, "upload": {"sent": 6, "found": 0}, "client_error": {"sent": 6, "found": 0}}}
+70
View File
@@ -0,0 +1,70 @@
{
"off": {
"counter_delta_totals": {
"exported_spans": 0,
"failed_spans": 0,
"accepted_spans": 0,
"refused_spans": 0,
"tempo_ingested_bytes": 0,
"loki_ingested_bytes": 0,
"prometheus_samples": 46185.0
},
"traces_found": 0,
"requests": 240,
"slow_found": 0,
"slow_sent": 12,
"client_error_found": 0,
"client_error_sent": 12
},
"full": {
"counter_delta_totals": {
"exported_spans": 4947.0,
"failed_spans": 0,
"accepted_spans": 4898.0,
"refused_spans": 0,
"tempo_ingested_bytes": 697602.0,
"loki_ingested_bytes": 198451.0,
"prometheus_samples": 44282.0
},
"traces_found": 240,
"requests": 240,
"slow_found": 12,
"slow_sent": 12,
"client_error_found": 12,
"client_error_sent": 12
},
"ten_percent": {
"counter_delta_totals": {
"exported_spans": 461.0,
"failed_spans": 0,
"accepted_spans": 453.0,
"refused_spans": 0,
"tempo_ingested_bytes": 95539.0,
"loki_ingested_bytes": 196690.0,
"prometheus_samples": 49391.0
},
"traces_found": 34,
"requests": 240,
"slow_found": 3,
"slow_sent": 12,
"client_error_found": 2,
"client_error_sent": 12
},
"balanced": {
"counter_delta_totals": {
"exported_spans": 2402.0,
"failed_spans": 0,
"accepted_spans": 2402.0,
"refused_spans": 0,
"tempo_ingested_bytes": 362056.0,
"loki_ingested_bytes": 184978.0,
"prometheus_samples": 44897.0
},
"traces_found": 125,
"requests": 240,
"slow_found": 8,
"slow_sent": 12,
"client_error_found": 7,
"client_error_sent": 12
}
}
+9
View File
@@ -0,0 +1,9 @@
configuration,repetition,rps,unexpected_errors,p50,p95,p99,app_cpu_percent_sum_mean,app_ram_mib_sum_peak,telemetry_cpu_percent_sum_mean,telemetry_ram_mib_sum_peak,sent_requests,retained_request_traces,missing_request_traces,exported_spans,failed_spans,accepted_spans,refused_spans,tempo_ingested_bytes,loki_ingested_bytes,prometheus_samples
off,1,8.047,0,11.934,29.423,42.462,8.132,70.39,4.816,616.03,120,0,120,0.0,0.0,0.0,0.0,0.0,0.0,24720.0
full,1,8.053,0,11.856,31.41,42.052,9.962,73.733,10.37,608.78,120,120,0,2663.0,0.0,2615.0,0.0,343731.0,94264.0,21738.0
ten_percent,1,8.057,0,9.991,52.789,168.924,8.846,71.971,10.784,502.69,120,17,103,246.0,0.0,241.0,0.0,52631.0,103980.0,26869.0
balanced,1,8.062,0,10.423,30.254,52.116,8.462,71.314,10.322,651.25,120,72,48,1214.0,0.0,1214.0,0.0,195601.0,93278.0,22393.0
balanced,2,8.048,0,11.346,37.555,72.706,8.014,59.703,7.096,600.74,120,53,67,1188.0,0.0,1188.0,0.0,166455.0,91700.0,22504.0
ten_percent,2,8.061,0,12.281,42.42,63.216,7.942,60.066,13.176,671.03,120,17,103,215.0,0.0,212.0,0.0,42908.0,92710.0,22522.0
full,2,8.048,0,12.379,31.356,45.834,9.114,74.053,7.598,676.44,120,120,0,2284.0,0.0,2283.0,0.0,353871.0,104187.0,22544.0
off,2,8.05,0,10.728,30.012,63.853,7.404,64.176,6.616,563.21,120,0,120,0.0,0.0,0.0,0.0,0.0,0.0,21465.0
1 configuration repetition rps unexpected_errors p50 p95 p99 app_cpu_percent_sum_mean app_ram_mib_sum_peak telemetry_cpu_percent_sum_mean telemetry_ram_mib_sum_peak sent_requests retained_request_traces missing_request_traces exported_spans failed_spans accepted_spans refused_spans tempo_ingested_bytes loki_ingested_bytes prometheus_samples
2 off 1 8.047 0 11.934 29.423 42.462 8.132 70.39 4.816 616.03 120 0 120 0.0 0.0 0.0 0.0 0.0 0.0 24720.0
3 full 1 8.053 0 11.856 31.41 42.052 9.962 73.733 10.37 608.78 120 120 0 2663.0 0.0 2615.0 0.0 343731.0 94264.0 21738.0
4 ten_percent 1 8.057 0 9.991 52.789 168.924 8.846 71.971 10.784 502.69 120 17 103 246.0 0.0 241.0 0.0 52631.0 103980.0 26869.0
5 balanced 1 8.062 0 10.423 30.254 52.116 8.462 71.314 10.322 651.25 120 72 48 1214.0 0.0 1214.0 0.0 195601.0 93278.0 22393.0
6 balanced 2 8.048 0 11.346 37.555 72.706 8.014 59.703 7.096 600.74 120 53 67 1188.0 0.0 1188.0 0.0 166455.0 91700.0 22504.0
7 ten_percent 2 8.061 0 12.281 42.42 63.216 7.942 60.066 13.176 671.03 120 17 103 215.0 0.0 212.0 0.0 42908.0 92710.0 22522.0
8 full 2 8.048 0 12.379 31.356 45.834 9.114 74.053 7.598 676.44 120 120 0 2284.0 0.0 2283.0 0.0 353871.0 104187.0 22544.0
9 off 2 8.05 0 10.728 30.012 63.853 7.404 64.176 6.616 563.21 120 0 120 0.0 0.0 0.0 0.0 0.0 0.0 21465.0
File diff suppressed because it is too large Load Diff
+145
View File
@@ -0,0 +1,145 @@
{
"at": "2026-11-11T07:17:02.023361+00:00",
"containers": [
{
"name": "/mtusi2026lab6-api-1",
"image": "mtusi-messenger:lab6",
"status": "running",
"started_at": "2026-11-11T07:06:34.329528303Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000
},
{
"name": "/mtusi2026lab6-api-2",
"image": "mtusi-messenger:lab6",
"status": "running",
"started_at": "2026-11-11T07:11:20.392887139Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000
},
{
"name": "/mtusi2026lab6-collector-1",
"image": "otel/opentelemetry-collector-contrib:0.137.0",
"status": "running",
"started_at": "2026-11-10T19:32:17.968197475Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 201326592,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-gateway-1",
"image": "haproxy:3.2.4-alpine",
"status": "running",
"started_at": "2026-11-10T19:32:18.286616663Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 67108864,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-grafana-1",
"image": "grafana/grafana:12.2.0",
"status": "running",
"started_at": "2026-11-10T19:32:18.090061627Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 201326592,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-loki-1",
"image": "grafana/loki:3.5.5",
"status": "running",
"started_at": "2026-11-10T19:32:18.51793344Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 201326592,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-migrations-1",
"image": "mtusi-migrations:lab6",
"status": "exited",
"started_at": "2026-11-10T19:38:06.556403206Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 134217728,
"nano_cpus": 500000000
},
{
"name": "/mtusi2026lab6-minio-1",
"image": "mtusi-minio:RELEASE.2025-09-07T16-13-09Z",
"status": "running",
"started_at": "2026-11-11T06:56:16.504084898Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000
},
{
"name": "/mtusi2026lab6-postgres-1",
"image": "postgres:17.6-alpine3.22",
"status": "running",
"started_at": "2026-11-10T19:32:18.144322815Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000
},
{
"name": "/mtusi2026lab6-prometheus-1",
"image": "prom/prometheus:v3.6.0",
"status": "running",
"started_at": "2026-11-10T19:32:18.132436Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 268435456,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-redis-1",
"image": "redis:7.4.5-alpine3.21",
"status": "running",
"started_at": "2026-11-10T19:32:17.96910494Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 402653184,
"nano_cpus": 500000000
},
{
"name": "/mtusi2026lab6-s3_bootstrap-1",
"image": "mtusi-mc:RELEASE.2025-08-13T08-35-41Z",
"status": "exited",
"started_at": "2026-11-10T19:38:06.557042047Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 500000000
},
{
"name": "/mtusi2026lab6-tempo-1",
"image": "grafana/tempo:2.8.2",
"status": "running",
"started_at": "2026-11-11T07:09:04.705778982Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 0
},
{
"name": "/mtusi2026lab6-worker-1",
"image": "mtusi-messenger:lab6",
"status": "running",
"started_at": "2026-11-11T07:06:34.208498895Z",
"oom_killed": false,
"exit_code": 0,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000
}
]
}
+5
View File
@@ -0,0 +1,5 @@
$ make test
python3 tests/smoke.py --base-url "http://localhost:18086"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
exit=0
+12
View File
@@ -0,0 +1,12 @@
$ make check validate PYTHON=.venv/bin/python
.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
/Users/dkhakimovig/mtusi2026lab6/.venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
exit=0
$ GOMODCACHE=/private/tmp/lab6-gomodcache GOCACHE=/private/tmp/lab6-gocache go test -race ./...
PASS: all tested packages; exit=0. Run completed before runtime fault injection.
@@ -0,0 +1,349 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380182289689386",
"scope_name": "messenger",
"service_instance_id": "e2edd33d8b58",
"service_name": "messenger-worker",
"service_version": "lab6",
"severity_number": "9",
"span_id": "48b1a00146d15161",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380182289687670",
"{\"attempt\":4,\"event\":\"job.completed\",\"job_type\":\"attachment.process.v1\",\"outcome\":\"ready\",\"service.name\":\"messenger-worker\",\"severity\":\"INFO\",\"span_id\":\"48b1a00146d15161\",\"timestamp\":\"2026-11-11T06:56:22.289660585Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380182158663493",
"scope_name": "messenger",
"service_instance_id": "e6be289d2413",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "3899f41081f472da",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380182158661106",
"{\"attempt\":4,\"event\":\"job.published\",\"job_type\":\"attachment.process.v1\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"3899f41081f472da\",\"timestamp\":\"2026-11-11T06:56:22.158638627Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380173660299027",
"scope_name": "messenger",
"service_instance_id": "e2edd33d8b58",
"service_name": "messenger-worker",
"service_version": "lab6",
"severity_number": "9",
"span_id": "4fdca42f0ece4b9b",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380173660289945",
"{\"attempt\":3,\"event\":\"job.completed\",\"job_type\":\"attachment.process.v1\",\"outcome\":\"storage_unavailable\",\"service.name\":\"messenger-worker\",\"severity\":\"INFO\",\"span_id\":\"4fdca42f0ece4b9b\",\"timestamp\":\"2026-11-11T06:56:13.660190955Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380173552991633",
"scope_name": "messenger",
"service_instance_id": "c7b5ac648af7",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "315d1330b194b738",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380173552988008",
"{\"attempt\":3,\"event\":\"job.published\",\"job_type\":\"attachment.process.v1\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"315d1330b194b738\",\"timestamp\":\"2026-11-11T06:56:13.552942013Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380169154868452",
"scope_name": "messenger",
"service_instance_id": "e2edd33d8b58",
"service_name": "messenger-worker",
"service_version": "lab6",
"severity_number": "9",
"span_id": "625b78e11c90b490",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380169154854245",
"{\"attempt\":2,\"event\":\"job.completed\",\"job_type\":\"attachment.process.v1\",\"outcome\":\"storage_unavailable\",\"service.name\":\"messenger-worker\",\"severity\":\"INFO\",\"span_id\":\"625b78e11c90b490\",\"timestamp\":\"2026-11-11T06:56:09.154780337Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380169082259575",
"scope_name": "messenger",
"service_instance_id": "e6be289d2413",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "07283b45d91f7178",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380169082247785",
"{\"attempt\":2,\"event\":\"job.published\",\"job_type\":\"attachment.process.v1\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"07283b45d91f7178\",\"timestamp\":\"2026-11-11T06:56:09.082187541Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380166805494596",
"scope_name": "messenger",
"service_instance_id": "e2edd33d8b58",
"service_name": "messenger-worker",
"service_version": "lab6",
"severity_number": "9",
"span_id": "59ca1b39745a3bd0",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380166805492471",
"{\"attempt\":1,\"event\":\"job.completed\",\"job_type\":\"attachment.process.v1\",\"outcome\":\"storage_unavailable\",\"service.name\":\"messenger-worker\",\"severity\":\"INFO\",\"span_id\":\"59ca1b39745a3bd0\",\"timestamp\":\"2026-11-11T06:56:06.80541598Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380135473315188",
"scope_name": "messenger",
"service_instance_id": "e6be289d2413",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "fe33cab1b1482745",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380135473314104",
"{\"attempt\":1,\"event\":\"job.published\",\"job_type\":\"attachment.process.v1\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"fe33cab1b1482745\",\"timestamp\":\"2026-11-11T06:55:35.473299437Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380135368996615",
"scope_name": "messenger",
"service_instance_id": "c7b5ac648af7",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "26a9ac28885c10eb",
"trace_id": "3c112fa1787d40898e457423046b2e97"
},
"values": [
[
"1794380135368994073",
"{\"duration_seconds\":0.01217951,\"event\":\"http.request\",\"method\":\"POST\",\"request_id\":\"abd64a3a-9e50-4f65-8eba-5359554edcb6\",\"route\":\"/api/v1/chats/{chat_id}/attachments\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"26a9ac28885c10eb\",\"status\":202,\"timestamp\":\"2026-11-11T06:55:35.368902734Z\",\"trace_id\":\"3c112fa1787d40898e457423046b2e97\"}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 27486554,
"linesProcessedPerSecond": 56638,
"totalBytesProcessed": 1721836,
"totalLinesProcessed": 3548,
"execTime": 0.062643,
"queueTime": 0.000637,
"subqueries": 0,
"totalEntriesReturned": 9,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 9,
"totalStructuredMetadataBytesProcessed": 511258
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 3,
"totalBatches": 3,
"totalLinesSent": 9,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 334028,
"headChunkLines": 867,
"decompressedBytes": 1387808,
"decompressedLines": 2681,
"compressedBytes": 243276,
"totalDuplicates": 0,
"postFilterLines": 9,
"headChunkStructuredMetadataBytes": 55488,
"decompressedStructuredMetadataBytes": 455770
},
"chunkRefsFetchTime": 497540,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 1,
"entriesStored": 1,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 2,
"downloadTime": 2583823,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
@@ -0,0 +1,181 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "info",
"flags": "1",
"observed_timestamp": "1794380221967106280",
"scope_name": "messenger",
"service_instance_id": "c7b5ac648af7",
"service_name": "messenger-api",
"service_version": "lab6",
"severity_number": "9",
"span_id": "0180e630b41605b3",
"trace_id": "dbc9b2dc91404a1fa7fae889b013bb34"
},
"values": [
[
"1794380221967096071",
"{\"duration_seconds\":2.008002544,\"event\":\"http.request\",\"method\":\"POST\",\"request_id\":\"403a5ef3-252f-496f-958c-272b032071e8\",\"route\":\"/api/v1/chats/{chat_id}/messages\",\"service.name\":\"messenger-api\",\"severity\":\"INFO\",\"span_id\":\"0180e630b41605b3\",\"status\":503,\"timestamp\":\"2026-11-11T06:57:01.966887521Z\",\"trace_id\":\"dbc9b2dc91404a1fa7fae889b013bb34\"}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 86774690,
"linesProcessedPerSecond": 178807,
"totalBytesProcessed": 1721836,
"totalLinesProcessed": 3548,
"execTime": 0.019843,
"queueTime": 0.000248,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 511258
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 3,
"totalBatches": 3,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 334028,
"headChunkLines": 867,
"decompressedBytes": 1387808,
"decompressedLines": 2681,
"compressedBytes": 243276,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 55488,
"decompressedStructuredMetadataBytes": 455770
},
"chunkRefsFetchTime": 231355,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 1,
"entriesRequested": 1,
"entriesStored": 0,
"bytesReceived": 261,
"bytesSent": 0,
"requests": 1,
"downloadTime": 44288,
"queryLengthServed": 116000000000
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,239 @@
{
"batches": [
{
"resource": {
"attributes": [
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "c7b5ac648af7"
}
},
{
"key": "service.version",
"value": {
"stringValue": "lab6"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-api"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger"
},
"spans": [
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "EcXZvs2zSiA=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219960223589",
"endTimeUnixNano": "1794380219960724417",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {
"code": "STATUS_CODE_OK"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "gkE63CJbPbQ=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219960746208",
"endTimeUnixNano": "1794380219961817030",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {
"code": "STATUS_CODE_OK"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "ep+Ye6udB30=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219961950029",
"endTimeUnixNano": "1794380219962743021",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {
"code": "STATUS_CODE_OK"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "TxWSichX9ZA=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql BEGIN",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219962766813",
"endTimeUnixNano": "1794380219962922353",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "BEGIN"
}
}
],
"status": {
"code": "STATUS_CODE_OK"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "m/ApFyKYZ0k=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219962928019",
"endTimeUnixNano": "1794380219963135225",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {
"code": "STATUS_CODE_OK"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "5sQcL8g048w=",
"parentSpanId": "AYDmMLQWBbM=",
"name": "postgresql SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1794380219963139559",
"endTimeUnixNano": "1794380221964078996",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {
"message": "dependency unavailable",
"code": "STATUS_CODE_ERROR"
}
},
{
"traceId": "28my3JFASh+n+uiJsBO7NA==",
"spanId": "AYDmMLQWBbM=",
"parentSpanId": "EjRWeJASNFY=",
"name": "POST /api/v1/chats/{chat_id}/messages",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1794380219958881186",
"endTimeUnixNano": "1794380221967108989",
"attributes": [
{
"key": "method",
"value": {
"stringValue": "POST"
}
},
{
"key": "route",
"value": {
"stringValue": "/api/v1/chats/{chat_id}/messages"
}
},
{
"key": "status_class",
"value": {
"stringValue": "5xx"
}
},
{
"key": "http.response.status_code",
"value": {
"intValue": "503"
}
}
],
"status": {
"message": "server error",
"code": "STATUS_CODE_ERROR"
}
}
]
}
]
}
]
}