Why isn't my AppInsights rule firing?

Chris Ahrens 0 Reputation points
2024-09-03T19:11:01.3366667+00:00

I have some functions created via a Functions App and an Application Insights service tied to that. I have set up an Alert in the App Insights service to alert me when one of the functions fails, but it is not working. It appears that all is setup correctly, but I've had many failures over the past few days, and no alerts. Can you help identify what I've done wrong?

Here's the conditions, and you can see by the preview graph, I have met the threshold many times recently. User's image

Here is the action group, which I have tested and it sends an email.

User's image

And here is the final details page.

User's image

Any ideas on what I've done wrong here? I'm guessing it's obvious to someone who's set these up before but this is my first time.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,890 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 3,905 Reputation points Microsoft Employee
    2024-09-04T10:23:21.36+00:00

    Hello @Chris Ahrens Based on the information you provided, it seems that you have set up the alert rule correctly. However, there are a few things that you can check to troubleshoot the issue:

    1. Check if the alert rule is enabled. You can do this by going to the Alert rules page and verifying that the toggle switch next to the rule is set to "On".
    2. Check if the alert rule is correctly configured to monitor the right metric. You can do this by going to the Metrics Explorer page and verifying that the metric you are monitoring is being collected and has data for the time range you are interested in.
    3. Check if the alert rule is correctly configured to monitor the right resource. You can do this by going to the Resource page and verifying that the resource you are monitoring is the correct one.
    4. Check if the alert rule is correctly configured to send notifications to the right action group. You can do this by going to the Action groups page and verifying that the action group you are using is correctly configured to send notifications to the right recipients. If you have verified all of the above and the alert rule is still not firing, you can try creating a new alert rule with the same conditions and action group to see if that resolves the issue.

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.


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.