Monitor Alert email has wrong Metric value

Gabriel Smoljar 6 Reputation points
2024-11-20T08:18:20.5366667+00:00

I have created an alert rule for Communication Services Email API requests with a threshold of 1500. For the last few days I have received emails from this alert, but the Metric Value in the email is lower than that. If I open the alert in the portal, I see that the metric value is actually higher, as expected.

How can I make the Metric value correct in email notifications?

I also do not get a notification when the alert is automatically resolved. Not sure if that is related.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
917 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 25,006 Reputation points MVP
    2024-11-20T09:02:26.55+00:00

    Hi,

    One thing to keep in mind that you have some aggregation happening depending on how your alert rule is configured and there is some aggregation as well done when you open Metrics view for that metrics. Most likely the difference that you see is caused by those aggregations being different. It is unlikely that there is a wrong value. In case you think that everything from your perspective is correct best is to open Azure Support case as there is no other way outside person to figure out the problem. In order to get notification for resolved alert instance the alert rule needs to be configured with automatically resolved (stateful) option enabled. If that is not configured the alert instance will never be resolved and thus you will not get e-mail with resolved state. If you have configured the alert to be stateful the resolved state notification will come when the threshold is no longer met for specific period of time. If I remember correctly 3 times in a row the threshold should not be met for the frequency of the configured alert rule.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.