question

NishanthPrabhakaran-9124 avatar image
0 Votes"
NishanthPrabhakaran-9124 asked tbgangav-MSFT commented

How is the average mechanism working in Azure metric alerts?

I was working on setting up Azure metric alerts for Service bus queue. I did configure Count to Dead-letter messages metric that will be monitored on average aggregation type. I would like to understand the Average mechanism of Azure alerts when I configure 15 minutes and 1-day Aggregation granularity.

Is it averaging on minutes/hours?

azure-monitorazure-service-bus
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.

1 Answer

RoderickBant74 avatar image
0 Votes"
RoderickBant74 answered tbgangav-MSFT commented

Azure Monitoring metric alerts look back a certain period of time and calculates the average value over that given period and if it exceeds the given threshold.. The Frequency defines at which intervals this calculation and evalution is done.

There is documenation of metric alert condictions here


· 2
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.

Hi @RoderickBant74, Thanks much for the explanation but how will it average if I configure Period of Time as 1 Day. Will it take every minute or every hour in a day to average?

0 Votes 0 ·
tbgangav-MSFT avatar image tbgangav-MSFT NishanthPrabhakaran-9124 ·

Hi @NishanthPrabhakaran-9124,

The interval it takes to average depends on "Frequency" that is defined.

For example: If you have defined "Period" as 1 Day and if you have defined "Frequency" as 1 Minute then from the time the alert rule is created, the monitor runs every 1 Minute and looks at metric values for the last 1 Day and checks the condition that you have set and takes the action accordingly.

For more examples, you may refer to the document that was shared by @RoderickBant74.

2 Votes 2 ·