question

bombbe avatar image
0 Votes"
bombbe asked tbgangav-MSFT commented

Azure Alert from 'fired' to 'resolved' time

Hi,
could not find this information on about docs so hopefully someone knows here.

If my alert fires and goes to Alert condition -> 'fired' how much time can there be between until Alert condition can't anymore go to 'resolved' automatically?

I have few alerts and affected resources that are still in condition 'fired' but the issue is really solved and condition is not anymore met.

azure-monitor
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @bombbe,

Is your alert stateful or stateless? Is your alert a metric alert or log alert? Please check below scenarios that might be matching with yours. If not, then please provide more details or context to try to help you.

Scenario 1:
As explained here (for illustration check below screenshot), if you have made a metric alert rule stateless then it prevents fired alerts from becoming resolved so even after the condition isn’t met anymore the fired alerts will remain in a fired state until the 30 days retention period.

193544-image.png

Scenario 2:
As explained here, if you have a stateless alert then it fires each time the condition is met, even if fired previously and you can mark the alert as closed once the alert instance is resolved. Stateful alerts fire once per incident and resolve. The alert rule resolves when the alert condition isn't met for 30 minutes for a specific evaluation period (to account for log ingestion delay), and for three consecutive evaluations to reduce noise if there is flapping conditions. Stateful alerts feature is currently in preview. You can set this using Automatically resolve alerts in the alert details section.

193565-image.png

0 Votes 0 ·
image.png (106.5 KiB)
image.png (101.7 KiB)

Hi,
I'm alert is log query v2 and it is following

 Heartbeat
 | summarize LastCall = max(TimeGenerated) by Computer, _ResourceId
 | extend HeartBeatMissing = iff(LastCall < ago(2h), 1, 0)

195195-image.png
195175-image.png

is this stateful or stateless? I would say stateless so what is maximum time that these alerts can be automatically closed?

0 Votes 0 ·
image.png (64.9 KiB)
image.png (5.2 KiB)

Hi @bombbe,

Your response clarifies that you have configured log alert and as you have enabled Automatically resolve alerts section so its a stateful log alert which is currently in preview. As per scenario 2 in my earlier comment and as explained here, stateful alerts fire once per incident and resolve. The alert rule resolves when the alert condition isnt met for 30 minutes for a specific evaluation period to account for log ingestion delay, and for three consecutive evaluations to reduce noise if there is flapping conditions.


0 Votes 0 ·
bombbe avatar image bombbe tbgangav-MSFT ·

this still not really answers my question. Can that alert e.g resolve automatically after 2 weeks being open when alert condition isnt met for X minutes or what is maximum time time for this?

0 Votes 0 ·
Show more comments

0 Answers