Monitoring DPG health
DPG provides healthz (readiness) and liveness API endpoints to monitor the current DPG health.
healthz
Checks the current health of the DPG container and reports whether it is ready to receive service requests. The readiness probe is served on non-TLS port 8080.
The health of the DPG container is evaluated by the following status codes:
Status code
200(status is OK ) – DPG is ready to serve requests.Status code
503(an error) – DPG can't process any requests but it is recoverable. Check the DPG logs and fix the issue to recover from the error state.
Example
GET https://<dpg host IP>:<probes port>/healthz
Output
{
"status": "OK"
}
In the above API call, replace <dpg host IP> and <probes port> with the actual values from your DPG deployment.
liveness
Checks whether the DPG container is live and healthy. The liveness probe is served on non-TLS port 8080.
The liveness of the DPG container is evaluated by the following status codes:
Status code
200(status is OK ) – DPG is ready to serve requests.Status code
503(an error) – DPG can't process any requests and isn't recoverable. Restart or redeploy the DPG container to recover from the error state.
Example
GET https://<dpg host IP>:<probes port>/liveness
Output
{
"status": "OK"
}
In the above API call, replace <dpg host IP> and <probes port> with the actual values from your DPG deployment.