All work
Entry 03 of 03
Read the walkthrough
- Check the health endpoint
- Detect a failed response
- Send an alert
Overview
I set up a scheduled request to a health endpoint and compare the response with what a healthy service should return. An alert identifies the affected endpoint so the person looking after it knows where to investigate.
What it covers
- Scheduled health checks
- Response validation
- Failure alerts
- Check history
Monitor a health endpoint
- Choose a health endpoint and record the status code and response you expect when the service is working.
- Use a scheduled Python request with a timeout to check the endpoint and log the time and result.
- Run the check against a deliberately unhealthy test endpoint and verify that the alert identifies the failing service.