Asp.net core has health check middleware which reports the health of our application.
Health checks are done through Http endpoints where we can see live monitoring of the services. We can alos see disk spaces, memory and server resources performance
Lets dive to the code
I created 3 projects where Phani.DeveloperApi and TesterApi are services and Phani.HealthChecks is a monitoring service
Lets install packages for our monitoring service. UI health checks is for better UI visiblity for dashboard.

run on port 5000

Now configure our services and middleware in starup

And add the health Uri for both Developer and Tester services in appsettings.json running on port 5001/5002

Now in DeveloperApi , we run on port 5001 and TesterAPI on port 5002

Install packages

Here we will be adding healthchecks in services and middleware

Now, lets run our 3 services


Now for the health checks , we can use the url: http://localhost:5000/healthchecks-ui

Here we can see the 2 services Phani.DeveloperApi and Phani.TesterApi are running and can see the health status. There will be different health check statuses like Healthy, UnHealthy,Degraded.
Code in my Github: https://github.com/pbndru/Phani.HealthChecks