Health And Readiness
Use this page to probe service liveness, readiness, and metrics without confusing local and hosted deployment behavior.
Who This Is For
- operators wiring load balancers and uptime checks
- developers debugging startup and database readiness
- teams scraping Prometheus-compatible metrics
When To Use This
Use this page when you need to decide which probe endpoint belongs in which operational context.
How It Works
System endpoints:
GET /healthGET /healthzGET /readyzGET /metrics
Semantics:
/healthis the hosted-safe liveness alias/healthzis the standard liveness probe for local and self-hosted compatibility/readyzreturns200when ready and503when not ready/metricsreturns Prometheus text
Hosted guidance:
- prefer
/healthfor Cloud Run-facing external liveness - keep
/healthzfor local and self-hosted tooling
Example
bash
curl https://api.licensekit.dev/health
curl https://api.licensekit.dev/readyz
curl https://api.licensekit.dev/metricsReadiness responses always use a JSON envelope, even on 503.
Common Mistakes
- using
/readyzas if it were a liveness check - expecting
/metricsto return a JSON envelope - assuming
/healthzis the preferred external hosted probe path