Herald
OpenapiSystem

Health check endpoint for monitoring and orchestration

Used by: - Kubernetes liveness probes (is the service running?) - Kubernetes readiness probes (can the service handle traffic?) - Monitoring systems (Prometheus, Datadog, etc.) - Load balancers (health checks) # Health Criteria The service is considered **healthy** when: - PostgreSQL database is reachable (`SELECT 1` succeeds) - Redis cache is reachable (PING succeeds) # Response Codes - **200 OK**: Service is healthy - **503 Service Unavailable**: Service is unhealthy

GET
/health

Used by:

  • Kubernetes liveness probes (is the service running?)
  • Kubernetes readiness probes (can the service handle traffic?)
  • Monitoring systems (Prometheus, Datadog, etc.)
  • Load balancers (health checks)

Health Criteria

The service is considered healthy when:

  • PostgreSQL database is reachable (SELECT 1 succeeds)
  • Redis cache is reachable (PING succeeds)

Response Codes

  • 200 OK: Service is healthy
  • 503 Service Unavailable: Service is unhealthy

Response Body

Service is healthy

application/json
  1. response

Health check response schema

database*boolean

PostgreSQL connection status

redis*boolean

Redis connection status

status*string

Overall service status: "healthy" or "unhealthy"

timestamp*string

Current timestamp in RFC3339 format

uptime*integer

Service uptime in seconds since startup

Formatint64
Range0 <= value
version*string

Service version from Cargo.toml

Example Request
curl -X GET 'https://example.com/health'
Example Response
{
  "database": true,
  "redis": true,
  "status": "string",
  "timestamp": "string",
  "uptime": 0,
  "version": "string"
}