Skip to content

Add health endpoints to Dapr Agent for Kubernetes and Dapr probes #375

@bibryam

Description

@bibryam

When the agent is run in standalone mode (exposed over HTTP and or PubSub), it should expose standard health endpoints to support Kubernetes and Dapr health checks.

Add the following endpoints:

  • /healthz: Overall application health.
  • /livez: Kubernetes liveness probe, indicates whether the process should be restarted.
  • /readyz: Kubernetes readiness probe, indicates whether the agent can accept traffic.

If all 3 endpoints behave the same way, IMO a single healthz would be sufficient.

Additionally, Dapr always probes /dapr/config for subscriptions. Instead of returning 404, the agent should return an empty list to avoid surfacing errors when no subscriptions are defined.

Reference: https://docs.dapr.io/operations/resiliency/health-checks/app-health/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions