Custom Event Counter-based ASP.NET Core Health Check

published on

ASP.NET Core has built-in, customizable health check middleware. A utility can periodically probe the health endpoint to determine the health of the web app, which is useful if your web app is load-balanced or hosted in Kubernetes. This post is about implementing a custom health check that you can configure to track any Event Counter.