New in Dash 3.3.0
Dash apps can expose a health check endpoint for monitoring server status in production environments. This is useful for load balancers, Docker health checks, Kubernetes probes, uptime monitoring scripts, and in CI/CD pipelines.
Enable the health endpoint by setting health_endpoint to a path (as a string). In this example, the health endpoint will be available at /health:
from dash import Dash
app = Dash(health_endpoint="health")
Examples:
# Enable at /status
app = Dash(health_endpoint="status")
# Use with a route prefix
app = Dash(routes_pathname_prefix="/app/", health_endpoint="health")
# Accessible at: /app/health
The endpoint returns a plain text "OK" response with HTTP status 200.