Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Application Insights Alerts work only once

I am testing Azure Application Insights alert functionality. It seems to be either buggy or I don't know how to use it.

If I create a new alert, based on the metric 'Server Exceptions', it seems to work once then never again. Once it fires, it seems to go into a state of 'Active' where there is an orange triangle with an !. See the image below. I created a new one, that I haven't triggered, and as can be seen in the image it has a green circle with a tick.

This sort of implies to me that an alert won't fire again until one 'acknowledges' the alert, which is not a bad idea, but I can't see how to do that.

enter image description here

Edit :

I have just tried to use the 'Exception Rate' as suggested, but I think the minimum threshold to fire the alert would be an average of 1 exception per second over a 5 minute period.

I must say it seems strange that my use-case isn't handled. I have a light weight Web API service that is so simple it should never fail but it could, and as a result if an exception occurs I want to receive an alert straight away.

like image 880
user381624 Avatar asked Jun 30 '15 03:06

user381624


People also ask

Which component is used by Azure Monitor to define the actions once an alert has been triggered?

Azure Monitor, Azure Service Health, and Azure Advisor then use action groups to notify users about the alert and take an action. An action group is a collection of notification preferences that are defined by the owner of an Azure subscription.

How does application insights work Azure?

The Application Insights agent or SDK pre-processes telemetry and metrics before sending the data to Azure where it's ingested and processed further before being stored in Azure Monitor Logs (Log Analytics). For this reason, an Azure account is required to use Application Insights.

How many days will smart detection required to establish a baseline?

To establish a baseline of normal performance, smart detection requires at least eight days of sufficient telemetry volume. After your application has been running for that period, significant anomalies will result in a notification.

What is the difference between application insights and Azure Monitor?

Azure monitor is a service that provides monitoring and diagnostics for resources in Azure, while application insights is a service that provides monitoring and diagnostics for web applications.


2 Answers

Alert is supposed to resolve and state is supposed to get back to green when the condition of the alert is no longer fulfilled. This is exceptionally hard to achieve with "Count" metrics because they go up and up and almost never down. It means that, once fired, the alert won't resolve because the value of the metric stays over the threshold all the time.

You can try to set an alert on the "Rate" metric instead and you should see that the state is returning to green when the "Rate" is within the limits you set.

like image 109
Dmitry Matveev Avatar answered Oct 26 '22 17:10

Dmitry Matveev


This is now fixed. Please let us know if you see any issues. Some things to keep in mind:

  • Alert rules are evaluated on a sliding window: an alert would trigger/resolve based on how the condition evaluates on a sliding window from the instant a sample arrives.
  • A caveat to the above for exception count based alert rules: we will resolve an alert if there are no exceptions reported for the time window configured in the rule.
  • Note: this is different from metrics based rules – lack of data does not result in the alert being resolved for those.
like image 45
Soubhagya Dash Avatar answered Oct 26 '22 16:10

Soubhagya Dash