317
CHAPTER 7 | Implement resilient applications
Figure 8-9. Sample health check report in eShopOnContainers
In summary, this watchdog service queries each microservice’s “/hc” end
point. This will execute all the
health checks defined within it and return an overall health state depending on all those checks. The
HealthChecksUI is easy to consume with a few configuration entries and two lines of code that needs
to be added into the
Startup.cs
of the watchdog service.
Sample configuration file for health check UI:
Dostları ilə paylaş: