Overview
Health endpoints provide status information about the proxy and its connected services.Proxy Health
GET /health
Check if the proxy is running and healthy.Response
string
Health status.Values:
"healthy", "unhealthy"string
Database connection status.
string
Redis connection status.
string
LiteLLM version.
array
List of healthy model deployments.
array
List of unhealthy model deployments.
Example
Readiness Check
GET /health/readiness
Check if the proxy is ready to accept requests.Response
string
Readiness status:
"ready" or "not_ready"boolean
Whether database is initialized.
boolean
Whether router is initialized.
Example
Liveness Check
GET /health/liveliness
Check if the proxy is alive (basic ping).Response
Returns 200 OK if the proxy process is running.Example
Model Health
GET /health/models
Get health status of all configured models.Response
array
List of healthy model deployments.
array
List of unhealthy model deployments.
Example
Service Health
GET /health/services
Check health of connected services (database, Redis, etc.).Response
object
Database connection status.
object
Redis connection status.
object
Router status.
Example
Monitoring Integration
Kubernetes Probes
Docker Health Check
Monitoring Script
Prometheus Metrics
LiteLLM proxy exposes Prometheus metrics at/metrics:
- Request counts
- Request latencies
- Error rates
- Token usage
- Cost tracking
- Model health status