# Lab 6 — evidence for grade 4 Environment: local Docker Compose, alternate loopback ports `18080/13000/19090/13100/13200`, 2026-11-12. ## Static and configuration checks - `go test -count=1 ./...`: PASS. - `docker compose config --quiet`: PASS. - Collector `validate`: PASS. - `promtool check config` and `promtool check rules`: PASS, 3 rules. - Grafana dashboard UID `mtusi-lab6-grade4`: provisioned. ## End-to-end W3C trace `make test-observability-grade4 ...`: PASS. ```json { "trace_id": "e219baae473d961c30c97857bbfb19dd", "services": ["messenger-api", "messenger-dispatcher", "messenger-worker"], "span_kinds": ["CLIENT", "CONSUMER", "PRODUCER", "SERVER"], "span_count": 36, "queue_metric_series": 2, "db_pool_series": 12, "dashboard_uid": "mtusi-lab6-grade4" } ``` ## Retry in the same trace `make test-observability-retry-trace ...`: PASS. ```json { "trace_id": "0df6d4041008c05e5c2c77b0c2bd2ddf", "attachment_status": "ready", "attempts": [1, 2], "producer_spans": 2, "consumer_spans": 2, "span_count": 46 } ``` The first attempt observed MinIO unavailable. After MinIO recovery, the second attempt succeeded. Both attempts, DB spans and S3 spans use the original upload trace ID. ## Alert firing and resolution `make test-observability-alerts ...`: PASS. ```json { "queue_lag": { "firing_after_seconds": 26.075, "depth": 1, "oldest_age_seconds": 21.156533, "resolved_after_seconds": 8.009 }, "database_outage": { "firing_after_seconds": 19.044, "failed_requests": 8, "trace_id": "db176205d463b89b73c737780e58cf06", "error_span": "postgresql.acquire", "resolved_after_seconds": 44.049 } } ``` ## Telemetry backend outage `make test-telemetry-backend-outage ...`: PASS. ```json { "business_requests": 400, "attachment_status": "ready", "accepted_signal_delta": 3170, "dropped_signal_delta": 75, "collector_queue_size": 34, "collector_queue_capacity": 256, "collector_peak_memory_bytes": 261305139, "collector_container_limit_bytes": 268435456, "recovery_trace_id": "01806671c8d2cee14dc504f63a60197b" } ``` No business request failed and the attachment reached `ready`. Telemetry loss began only after the bounded 30-second retry budget. Loki/Tempo recovery was confirmed by a fresh correlated log and Tempo trace. ## Lifecycle cleanup At the end of the grade-4 work, `make cleanup-lab` completed successfully. Verified postcondition: - no running/stopped `mtusi2026lab6-*` Compose containers; - no locally built `mtusi2026lab6-*` images; - named volumes remain for an intentional later resume: `broker_data`, `grafana_data`, `loki_data`, `minio_data`, `postgres_data`, `prometheus_data`, `tempo_data`; - pulled third-party images and other labs are untouched.