Skip to main content
GaiterGuard provides two health check endpoints for monitoring service availability and database connectivity.

Liveness check

Returns a basic health status without performing any external checks. Use this endpoint for liveness probes in container orchestration.

Response

string
Always returns "ok" if the service is running

Example

Response
This endpoint does not check database connectivity. It only confirms the HTTP server is running and accepting requests.

Readiness check

Performs a database connectivity check to verify the service is ready to handle requests. Use this endpoint for readiness probes in container orchestration.

Response

string
Returns "ready" when all dependencies are available
string
Connection status: "connected" or error message

Example

Success (200)
Failure (503)
If the database is unavailable, this endpoint returns a 503 Service Unavailable status. Configure your orchestrator to restart or replace the service if this check fails repeatedly.

Kubernetes configuration

Use these endpoints in your Kubernetes deployment:

Docker Compose healthcheck

Both endpoints are unauthenticated and can be called without an Agent-Key or Authorization header.