Dapr provides health checking probes that can be used as readiness or liveness of Dapr and for initialization readiness from SDKs.
Gets the health state for Dapr by either:
Wait for all components to be initialized, the Dapr HTTP port to be available and the app channel is initialized. For example, this endpoint is used with Kubernetes liveness probes.
GET http://localhost:<daprPort>/v1.0/healthz
Code | Description |
---|---|
204 | Dapr is healthy |
500 | Dapr is not healthy |
Parameter | Description |
---|---|
daprPort | The Dapr port |
curl -i http://localhost:3500/v1.0/healthz
/outbound
pathWait for all components to be initialized, the Dapr HTTP port to be available, however the app channel is not yet established. This endpoint enables your application to perform calls on the Dapr sidecar APIs before the app channel is initalized, for example reading secrets with the secrets API. For example used in the Dapr SDKs waitForSidecar
method (for example .NET and Java SDKs) to check sidecar is initialized correctly ready for any calls.
For example, the Java SDK and the .NET SDK uses this endpoint for initialization.
Currently, the v1.0/healthz/outbound
endpoint is supported in the:
GET http://localhost:<daprPort>/v1.0/healthz/outbound
Code | Description |
---|---|
204 | Dapr is healthy |
500 | Dapr is not healthy |
Parameter | Description |
---|---|
daprPort | The Dapr port |
curl -i http://localhost:3500/v1.0/healthz/outbound