Smart detection in Application Insights
You can migrate smart detection on your Application Insights resource to be based on alerts. The migration creates alert rules for the different smart detection modules. Once created, you can manage and configure these rules just like any other Azure Monitor alert rules. You can also configure action groups for these rules, thus enabling multiple methods of taking actions or triggering notification on new detections.
For more information, see Smart Detection Alerts migration.
Smart detection automatically warns you of potential performance problems and failure anomalies in your web application. It performs proactive analysis of the telemetry that your app sends to Application Insights. If there is a sudden rise in failure rates, or abnormal patterns in client or server performance, you get an alert. This feature needs no configuration. It operates if your application sends enough telemetry.
You can access the detections issued by smart detection both from the emails you receive, and from the smart detection blade.
Review your smart detections
You can discover detections in two ways:
You receive an email from Application Insights. Here's a typical example:
Click the large button to open more detail in the portal.
The smart detection blade in Application Insights. Select Smart detection under the Investigate menu to see a list of recent detections.
Select a detection to view its details.
What problems are detected?
Smart detection detects and notifies about various issues, such as:
- Smart detection - Failure Anomalies. We use machine learning to set the expected rate of failed requests for your app, correlating with load, and other factors. Notifies if the failure rate goes outside the expected envelope.
- Smart detection - Performance Anomalies. Notifies if response time of an operation or dependency duration is slowing down, compared to historical baseline. It also notifies if we identify an anomalous pattern in response time, or page load time.
- General degradations and issues, like Trace degradation, Memory leak, Abnormal rise in Exception volume and Security anti-patterns.
(The help links in each notification take you to the relevant articles.)
Smart detection email notifications
All smart detection rules, except for rules marked as preview, are configured by default to send email notifications when detections are found.
Configuring email notifications for a specific smart detection rule can be done by opening the smart detection Settings blade and selecting the rule, which will open the Edit rule blade.
Alternatively, you can change the configuration using Azure Resource Manager templates. For more information, see Manage Application Insights smart detection rules using Azure Resource Manager templates for more details.
These diagnostic tools help you inspect the telemetry from your app:
Smart Detection is automatic. But maybe you'd like to set up some more alerts?