My ASP.NET Core web app (C#) running as an Azure app service (Linux) has a health check endpoint (/health) with custom health checks. E.g. DB connectivity, Graph API connectivity. The health check is configured in monitoring and shows as healthy. There is only single instance of the app.
I want to create a notification (preferably email) when the health check is unhealthy. E.g. The Client Secret expires. Ideally I don’t want to have to write code to periodically call the health check and send an email.
In Alerts then I try and create an alert rule and the only signals with “health” don’t seem suitable:
- “Resource health” – Presumably not the same thing as a health check.
- “Health check status” (Platform metrics) – Only has Count/Min/Max/Average options.