Public Health check endpoint

Currently /status.json requires an API token from super user. This is not ideal when trying to check status of the webserver container. Usually, a /health endpoint without auth would return a 200 status and some message or another non-success status.

Relying on container exit if process exits is not enough. While the process may be running, the application may not be healthy or serving requests. For this, I suggest a /health endpoint is added which requires no authentication and returns a 200 if health and body with just the version number.

This endpoint actually exists at GET /ping. This isn’t documented but already exists.

works without authentication. Returns “PONG.” with Content-Type= text/html and status code 200.

3 Likes

Submitted PR to Helm chart to update liveness and readiness probes: https://github.com/getredash/contrib-helm-chart/pull/35

Open to discussion