AddHealthChecks

The ASP.NET Core calls that register health checks (AddHealthChecks) and expose them at an endpoint (MapHealthChecks).

In more detail

The checks themselves are small classes or lambdas that report Healthy, Degraded or Unhealthy. Map separate routes for liveness and readiness, and use tags to choose which checks each runs.

Example

app.MapHealthChecks("/health/ready");

Related terms

Taught in

References