I don't feel so well… Integrating health checks in your .NET Core solutions
summary
Shows how to add ASP.NET Core 2.2 health endpoints that run synchronous and async checks (memory thresholds, DB and HTTP probes, circuit breaker state) and emit 200/503 codes and a HealthReport JSON; demos wire those endpoints into a hosted publisher, push metrics to Prometheus + Pushgateway + Grafana, run in Docker Compose and Kubernetes, and use readiness/liveness to drive rolling updates. Includes a slow dependency that takes 30 seconds to become healthy, recommends singleton checks for thread safety, and the demos successfully scraped, alerted and completed a rolling deploy.
AI-written summary · about
