Creating Alerts With Dynamic Thresholds in Azure Monitor - Microsoft Docs
Creating Alerts With Dynamic Thresholds in Azure Monitor - Microsoft Docs
Metric Alert with Dynamic Thresholds detection leverages advanced machine learning
(ML) to learn metrics' historical behavior, identify patterns and anomalies that indicate
possible service issues. It provides support of both a simple UI and operations at scale
by allowing users to configure alert rules through the Azure Resource Manager API, in a
fully automated manner.
Once an alert rule is created, it will fire only when the monitored metric doesn’t behave
as expected, based on its tailored thresholds.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 1/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
API results in fewer alert rules to manage. The scalable approach is especially
useful when dealing with metric dimensions or when applying to multiple
resources, like all subscription resources. Which translates to a significant time
saving on management and creation of alerts rules. Learn more about how to
configure Metric Alerts with Dynamic Thresholds using templates.
2. Smart Metric Pattern Recognition – Using our unique ML technology, we’re able
to automatically detect metric patterns and adapt to metric changes over time,
which may often include seasonality (Hourly / Daily / Weekly). Adapting to the
metrics’ behavior over time and alerting based on deviations from its pattern
relieves the burden of knowing the “right” threshold for each metric. The ML
algorithm used in Dynamic Thresholds is designed to prevent noisy (low precision)
or wide (low recall) thresholds that don’t have an expected pattern.
The thresholds are selected in such a way that a deviation from these thresholds
indicates an anomaly in the metric behavior.
7 Note
Seasonal pattern detection is set to hour, day, or week interval. This means other
patterns like bihourly pattern or semiweekly might not be detected.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 2/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
High – The thresholds will be tight and close to the metric series pattern. Alert rule
will be triggered on smallest deviation, resulting in more alerts.
Medium – Less tight and more balanced thresholds, fewer alerts than with high
sensitivity (default).
Low – The thresholds will be loose with more distance from metric series pattern.
Alert rule will only trigger on large deviation, resulting in fewer alerts.
Greater than the upper threshold or lower than the lower threshold (default)
Greater than the upper threshold
Lower than the lower threshold.
To trigger an alert when the issue is continuous for 20 minutes, 4 consecutive times in a
given period grouping of 5 minutes, use the following settings:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 3/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
To trigger an alert when there was a violation from a Dynamic Thresholds in 20 minutes
out of the last 30 minutes with period of 5 minutes, use the following settings:
Ignore data before - Users may also optionally define a start date from which the
system should begin calculating the thresholds from. A typical use case may occur when
a resource was a running in a testing mode and is now promoted to serve a production
workload, and therefore the behavior of any metric during the testing phase should be
disregarded.
All the metric details at the moment the Dynamic Thresholds alert fired.
A chart of the period in which the alert was trigger that includes the Dynamic
Thresholds used at that point in time.
Ability to provide feedback on Dynamic Thresholds alert and the alerts view
experience, which could improve future detections.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 4/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
1. In Azure portal, click on Monitor. The Monitor view consolidates all your
monitoring settings and data in one view.
Tip
Most resource blades also have Alerts in their resource menu under
Monitoring, you could create alerts from there as well.
3. Click Select target, in the context pane that loads, select a target resource that you
want to alert on. Use Subscription and 'Virtual Machines' Resource type drop-
downs to find the resource you want to monitor. You can also use the search bar
to find your resource.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 5/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
7. You will see a chart for the metric for the last 6 hours. Define the alert parameters:
a. Condition Type - Choose 'Dynamic' option.
b. Sensitivity - Choose Medium/Low sensitivity to reduce alert noise.
c. Operator - Choose 'Greater Than' unless behavior represents the application
usage.
d. Frequency - Consider lowering based on business impact of the alert.
e. Failing Periods (Advanced Option) - The look back window should be at least
15 minutes. For example, if the period is set to five minutes, then failing periods
should be at least three or more.
8. The metric chart will display the calculated thresholds based on recent data.
9. Click Done.
10. Fill in Alert details like Alert Rule Name, Description, and Severity.
11. Add an action group to the alert either by selecting an existing action group or
creating a new action group.
7 Note
Metric alert rules created through portal are created in the same resource group as
the target resource.
1. In Azure portal, click on Monitor. The Monitor view consolidates all your
monitoring settings and data in one view.
Tip
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 6/7
24/04/2019 Creating Alerts with Dynamic Thresholds in Azure Monitor | Microsoft Docs
Most resource blades also have Alerts in their resource menu under
Monitoring, you could create alerts from there as well.
3. Click Select target, in the context pane that loads, select a target resource that you
want to alert on. Use Subscription and 'Application Insights' Resource type drop-
downs to find the resource you want to monitor. You can also use the search bar
to find your resource.
7. You will see a chart for the metric for the last 6 hours. Define the alert parameters:
a. Condition Type - Choose 'Dynamic' option.
b. Operator - Choose 'Greater Than' to reduce alerts fired on improvement in
duration.
c. Frequency - Consider lowering based on business impact of the alert.
8. The metric chart will display the calculated thresholds based on recent data.
9. Click Done.
10. Fill in Alert details like Alert Rule Name, Description, and Severity.
11. Add an action group to the alert either by selecting an existing action group or
creating a new action group.
7 Note
Metric alert rules created through portal are created in the same resource group as
the target resource.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds 7/7