Skip to content

Latest commit

 

History

History

alert-azure-api-management-failed-requests-per-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Alert on Azure API Management Failures for a specific API

Deploy to Azure

How does it work?

In certain scenarios you have to create alerts when failed requests are happening for a given Azure API Management API.

Luckily, Azure Application Insights tracks all requests which have all the required information.

As there are no built-in metrics on which you can alert, you can use a custom log query:

requests
| where  resultCode  matches regex "4[0-9]{2}|5[0-9]{2}"
| where  customDimensions["API Name"] == "<you api name>"
| project name