MVP-1.1 · Health/version probes with real checks + build metadata #262

Open
opened 2026-09-20 20:17:19 +00:00 by sharang · 0 comments
Owner

Goal

Contract 2.0 §13 expects probes that actually mean something. Today /health answers optimistically and /version carries no build metadata, so neither Gatus nor an operator can tell a healthy deployment from a broken one, or which build is running.

What to change

  • Real /health with Mongo and tenant-registry checks, reporting ok|degraded and returning 503 when a dependency is down (handlers/health.rs).
  • /version gets the build sha and deployed_at, supplied via Docker build args from CI (build args added in MVP-4.1).

Acceptance

  • /health returns 503 with a degraded body when Mongo or the registry is unreachable, and 200 ok otherwise, with tests for both.
  • /version reports the git sha and deploy timestamp of the running image.
  • The container HEALTHCHECK (MVP-0.8) uses this endpoint.
  • Gatus checks for /health, /mcp/health and /docs are configured (MVP-5.1).
## Goal Contract 2.0 §13 expects probes that actually mean something. Today `/health` answers optimistically and `/version` carries no build metadata, so neither Gatus nor an operator can tell a healthy deployment from a broken one, or which build is running. ## What to change - Real `/health` with Mongo and tenant-registry checks, reporting `ok|degraded` and returning 503 when a dependency is down (`handlers/health.rs`). - `/version` gets the build sha and `deployed_at`, supplied via Docker build args from CI (build args added in MVP-4.1). ## Acceptance - [ ] `/health` returns 503 with a `degraded` body when Mongo or the registry is unreachable, and 200 `ok` otherwise, with tests for both. - [ ] `/version` reports the git sha and deploy timestamp of the running image. - [ ] The container `HEALTHCHECK` (MVP-0.8) uses this endpoint. - [ ] Gatus checks for `/health`, `/mcp/health` and `/docs` are configured (MVP-5.1).
sharang added this to the Production MVP milestone 2026-09-20 20:17:19 +00:00
sharang added the enhancementinfrastructure labels 2026-09-20 20:17:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#262