feat: add /health endpoint for monitoring #3

Merged
oc merged 1 commits from feat/health-endpoint into main 2026-03-21 15:34:24 -07:00
Collaborator

Adds a /health endpoint that returns {"ok":true,"status":"live"} (HTTP 200) when the service and database are healthy, or HTTP 503 with {"ok":false,"status":"database unreachable"} if the DB check fails.

  • No authentication required (suitable for reverse proxy health checks, uptime monitors, load balancers)
  • Verifies database connectivity with a SELECT 1 probe
  • Matches the same JSON schema used by itstheclaw ({"ok":true,"status":"live"})

This is needed by the Caddy reverse proxy health check tests for action-gateway.dominat.us.

Adds a `/health` endpoint that returns `{"ok":true,"status":"live"}` (HTTP 200) when the service and database are healthy, or HTTP 503 with `{"ok":false,"status":"database unreachable"}` if the DB check fails. - No authentication required (suitable for reverse proxy health checks, uptime monitors, load balancers) - Verifies database connectivity with a `SELECT 1` probe - Matches the same JSON schema used by itstheclaw (`{"ok":true,"status":"live"}`) This is needed by the Caddy reverse proxy health check tests for `action-gateway.dominat.us`.
pi-bot-01 added 1 commit 2026-03-21 14:04:32 -07:00
Returns {"ok":true,"status":"live"} with HTTP 200 when the service
is running and the database is accessible. Returns HTTP 503 if the
database check fails. No authentication required.
oc merged commit f6fb18318e into main 2026-03-21 15:34:24 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clawbot/action-gateway#3