Readiness probe — checks Postgres, Redis, Meilisearch, and the object store.
Gated by `x-monitoring-secret` (or `Authorization: Bearer <MONITORING_SECRET>`). Returns 200 only when every checked dependency responds within its timeout. Returns 503 with a per-dependency status breakdown on failure.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/health/ready"{ "status": "ok", "checks": { "postgres": { "ok": true, "latencyMs": 3 }, "redis": { "ok": true, "latencyMs": 1 }, "meilisearch": { "ok": true, "latencyMs": 5 }, "objectStore": { "ok": true, "latencyMs": 8 } }}{ "error": { "code": "AUTH_REQUIRED", "message": "Monitoring secret missing or invalid." }}{ "status": "ok", "checks": { "postgres": { "ok": true, "latencyMs": 3 }, "redis": { "ok": true, "latencyMs": 1 }, "meilisearch": { "ok": true, "latencyMs": 5 }, "objectStore": { "ok": true, "latencyMs": 8 } }}Public liveness probe alias. GET
Anonymous lightweight liveness check. Returns `{ status: "ok" }` when the process is up and does not check dependencies.
Prometheus scraping endpoint — gated by the monitoring secret. GET
Returns the `text/plain; version=0.0.4` exposition format consumed by Prometheus / Grafana Agent. Counters and histograms registered in `app/lib/metrics.ts`. Same auth as `/health/ready` (header `x-monitoring-secret` or `Authorization: Bearer <MONITORING_SECRET>`).