chore: initialize containerized Go learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 23:03:31 +01:00
commit 84be3e5d77
64 files changed
+1382

No files matched your search

@@ -0,0 +1,10 @@
# 03 — SRE Observability (`/healthz`, `/readyz`, `log/slog`, Prometheus metrics)
## Zadania (`observability.go`)
1. `FormatPrometheusCounter(name, help string, value uint64) string` — wygeneruj poprawny tekst w formacie Prometheus exposition (`# HELP ...`, `# TYPE ... counter`, `<name> <value>\n`).
2. `ReadinessHandler(ready *atomic.Bool) http.HandlerFunc` — zwróć `200 OK` gdy `ready.Load()` jest `true`, inaczej `503 Service Unavailable`.
## Uruchomienie testów
```bash
make test PKG=./exercises/03-ecosystems/03-sre-health-and-metrics
```