does the livekit server provide any health check e...
# ask-ai
b
does the livekit server provide any health check endpoint to monitor its health and or readiness?
t
Thanks for reaching out, Albert. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — regarding the health/readiness checks: • Yes. LiveKit services expose HTTP health endpoints when configured. • For Egress and Ingress, enable
health_port
in the YAML; the health endpoint is available at
/
and an availability check at
/availability
(returns 200 only if load is low enough to accept new requests). • LiveKit Agents run a health server by default at
http://0.0.0.0:8081/
. • These endpoints are suitable for Docker/Kubernetes liveness and readiness probes. Would you like example probe configs for Docker or Kubernetes? Sources: Self-hosting the Egress Service | LiveKit docs | Self-hosting the Ingress Service | LiveKit docs | Deploying to custom environments | LiveKit Docs
b
and does the livekit server expose such an endpoint? not the egress nor ingress services, neither the agent, the server one
t
You're asking whether the main LiveKit server (not egress, ingress, or agent) exposes a dedicated HTTP health/readiness endpoint. • The LiveKit server does not provide a dedicated HTTP health or readiness endpoint like
/
or
/availability
. • You can monitor the server by enabling the Prometheus metrics endpoint (
prometheus_port
) and using
/metrics
as a basic liveness indicator. • You can also treat successful connections to the server's API/WebSocket port (default 7880) as a sign the server is healthy and responsive. Would you like example Kubernetes liveness/readiness probe configs using the
/metrics
endpoint or a port-check? Sources: Deploying LiveKit | LiveKit docs | Ports and firewall | LiveKit docs | Self-hosting the Egress Service | LiveKit docs | Self-hosting the Ingress Service | LiveKit docs
b
I've made a
curl 10.0.4.253:7880
and received an OK, would this be enough?
t
Receiving "OK" from
curl 10.0.4.253:7880
shows basic connectivity and that the server process is responding, so it's a useful quick liveness check — but it's limited. What that check gives you: • Confirms the TCP port and HTTP handler are up and responding. • Good for a simple liveness probe. What it doesn't guarantee: • That the server can accept new rooms/sessions or has sufficient capacity. • That internal subsystems (redis, storage, SFU internals, egress workers, etc.) are healthy. • That metrics or higher-level features are functioning. Recommended production checks: • Use the
/metrics
Prometheus endpoint (enable
prometheus_port
) and alert on key metrics (connection errors, CPU/memory,
available_capacity
or similar metrics). • Combine: a Kubernetes liveness probe that checks the main port plus a readiness probe hitting
/metrics
or a metric-based readiness rule. • Optionally add an active WebSocket connection test to ensure API/WebSocket signalling works end-to-end. Would you like example Kubernetes probe configs for (a) simple port check, or (b)
/metrics
-based readiness?