Share via


Alerts are not firing

Question

Friday, March 22, 2019 12:16 AM

I am facing an issue with the Azure alert.

I have setup alert on my Logic App when the Run/Actions failure is greater than or equal to 1. The alert frequency is 5 min and time period is 5 min. 

Alert action is to send an email. 

The alert is triggered for the first time when it added to the logic app. 

However, subsequent failures does not trigger alerts even after waiting for more than 5 minutes.  

Any pointers appreciated. 

All replies (2)

Friday, March 22, 2019 10:45 AM âś…Answered | 1 vote

Hi Akshatha Pai K, AFAIK it is as per design i.e., metric alerts are stateful in nature which means that they only send out notifications when the state changes.

If an metric alert rule is fired as condition meets the threshold then in the subsequent checks if the condition still meets the threshold then it would not fire an metric alert rule until the conditions are resolved.

For more information, please refer this article.

Hope this helps!! Cheers!!


Friday, March 22, 2019 10:17 PM

Hi Krishna,

Thank you for the clarification and other details! 

This was helpful to understand the behavior. 

I have given below my test sequence for anyone who has the same question. 

Scenario: Metric alert was configured for logic app run/action failures and to send out an email using action group. Frequency of the alert was set to 5 min for a period of 5 min. 

Steps used in testing: 

1. Logic app ran and it failed.

2. When the metric alert rule fired and the condition was true, it sent out the email notification. (Note: There were no existing alerts with Monitor Condition - Fired at this point in time.)

3. The logic app ran again in next minute and it failed.

4.  Waited for around 15 min (frequency of alert was 5 min), it did not send out any notification as expected even though the condition was true. This is because there was already an alert in 'Fired' Monitor Condition and the alert rule did not fire. Also., the alert that fired for the first time in step 2 changed its Monitor Condition from Fired to Resolved. (This is because alert rule monitors the condition for 2 more times as per this link you shared and if it does not meet the condition, it resolves the alert). An email was sent for the resolved alert.

5. Ran the logic app once again and it failed.

6. This time the alert fired and sent out an email notification as there were no existing alerts with Monitor Condition - Fired.