Skip to content

Commit 30da227

Browse files
authored
Merge pull request #223491 from AbbyMSFT/dynamic-thresholds
Edit dynamic thresholds article
2 parents cc9276b + 061c4c5 commit 30da227

File tree

6 files changed

+177
-278
lines changed

6 files changed

+177
-278
lines changed

articles/application-gateway/configure-alerts-with-templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ You can use ARM templates to quickly configure important alerts for Application
2727
> 1. Select the action group to view its details.
2828
> 1. Use the Resource Group Name, Action Group Name and Subscription Info here to form the ResourceID for the action group as shown here: <br>
2929
> `/subscriptions/<subscription-id-from-your-account>/resourcegroups/<resource-group-name>/providers/microsoft.insights/actiongroups/<action-group-name>`
30-
- The templates for alerts described here are defined generically for settings like Severity, Aggregation Granularity, Frequency of Evaluation, Condition Type, and so on. You can modify the settings after deployment to meet your needs. See [Understand how metric alerts work in Azure Monitor](../azure-monitor/alerts/alerts-metric-overview.md) for more information.
31-
- The templates for metric-based alerts use the **Dynamic threshold** value with [High sensitivity](../azure-monitor/alerts/alerts-dynamic-thresholds.md#what-does-the-sensitivity-setting-in-dynamic-thresholds-mean). You can choose to adjust these settings based on your needs.
30+
- The templates for alerts described here are defined generically for settings like Severity, Aggregation Granularity, Frequency of Evaluation, Condition Type, and so on. You can modify the settings after deployment to meet your needs. See [detailed information about configuring a metric alert rule](../azure-monitor/alerts/alerts-create-new-alert-rule.md) for more information.
31+
- The templates for metric-based alerts use the **Dynamic threshold** value with [high sensitivity](../azure-monitor/alerts/alerts-dynamic-thresholds.md#known-issues-with-dynamic-threshold-sensitivity). You can choose to adjust these settings based on your needs.
3232

3333
## ARM templates
3434

articles/azure-monitor/alerts/alerts-create-new-alert-rule.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: AbbyMSFT
55
ms.author: abbyweisberg
66
ms.topic: conceptual
77
ms.custom: ignite-2022
8-
ms.date: 12/28/2022
8+
ms.date: 02/12/2023
99
ms.reviewer: harelbr
1010
---
1111
# Create a new alert rule
@@ -88,15 +88,32 @@ Then you define these elements for the resulting alert actions by using:
8888

8989
|Field |Description |
9090
|---------|---------|
91-
|Threshold|Select if the threshold should be evaluated based on a static value or a dynamic value.<br>A static threshold evaluates the rule by using the threshold value that you configure.<br>Dynamic thresholds use machine learning algorithms to continuously learn the metric behavior patterns and calculate the appropriate thresholds for unexpected behavior. You can learn more about using [dynamic thresholds for metric alerts](alerts-types.md#dynamic-thresholds). |
92-
|Operator|Select the operator for comparing the metric value against the threshold. |
91+
|Threshold|Select if the threshold should be evaluated based on a static value or a dynamic value.<br>A **static threshold** evaluates the rule by using the threshold value that you configure.<br>**Dynamic thresholds** use machine learning algorithms to continuously learn the metric behavior patterns and calculate the appropriate thresholds for unexpected behavior. You can learn more about using [dynamic thresholds for metric alerts](alerts-types.md#dynamic-thresholds). |
92+
|Operator|Select the operator for comparing the metric value against the threshold. <br>If you are using dynamic thresholds, alert rules can use tailored thresholds based on metric behavior for both upper and lower bounds in the same alert rule. Select one of these operators: <br> - Greater than the upper threshold or lower than the lower threshold (default) <br> - Greater than the upper threshold <br> - Lower than the lower threshold|
9393
|Aggregation type|Select the aggregation function to apply on the data points: Sum, Count, Average, Min, or Max. |
9494
|Threshold value|If you selected a **static** threshold, enter the threshold value for the condition logic. |
9595
|Unit|If the selected metric signal supports different units, such as bytes, KB, MB, and GB, and if you selected a **static** threshold, enter the unit for the condition logic.|
96-
|Threshold sensitivity| If you selected a **dynamic** threshold, enter the sensitivity level. The sensitivity level affects the amount of deviation from the metric series pattern that's required to trigger an alert. |
96+
|Threshold sensitivity| If you selected a **dynamic** threshold, enter the sensitivity level. The sensitivity level affects the amount of deviation from the metric series pattern that's required to trigger an alert. <br> - **High**: Thresholds are tight and close to the metric series pattern. An alert rule is triggered on the smallest deviation, resulting in more alerts. <br> - **Medium**: Thresholds are less tight and more balanced. There will be fewer alerts than with high sensitivity (default). <br> - **Low**: Thresholds are loose, allowing greater deviation from the metric series pattern. Alert rules are only triggered on large deviations, resulting in fewer alerts. |
9797
|Aggregation granularity| Select the interval that's used to group the data points by using the aggregation type function. Choose an **Aggregation granularity** (period) that's greater than the **Frequency of evaluation** to reduce the likelihood of missing the first evaluation period of an added time series.|
9898
|Frequency of evaluation|Select how often the alert rule is to be run. Select a frequency that's smaller than the aggregation granularity to generate a sliding window for the evaluation.|
9999

100+
1. (Optional) In the **When to evaluate** section:
101+
102+
|Field |Description |
103+
|---------|---------|
104+
|Check every|Select how often the alert rule checks if the condition is met. |
105+
|Lookback period|Select how far back to look each time the data is checked. For example, every 1 minute you’ll be looking at the past 5 minutes.|
106+
107+
1. (Optional) In the **Advanced options** section, you can specify how many failures within a specific time period will trigger the alert. For example, you can specify that you only want to trigger an alert if there were three failures in the last hour. This setting is defined by your application business policy.
108+
109+
Select values for these fields:
110+
111+
|Field |Description |
112+
|---------|---------|
113+
|Number of violations|The number of violations within the configured time frame that trigger the alert.|
114+
|Evaluation period|The time period within which the number of violations occur. |
115+
|Ignore data before|Use this setting to select the date from which to start using the metric historical data for calculating the dynamic thresholds. For example, if a resource was running in testing mode and is moved to production, you may want to disregard the metric behavior while the resource was in testing.|
116+
100117
1. Select **Done**.
101118

102119
### [Log alert](#tab/log)
@@ -119,7 +136,7 @@ Then you define these elements for the resulting alert actions by using:
119136

120137
|Field |Description |
121138
|---------|---------|
122-
|Measure|Log alerts can measure two different things, which can be used for different monitoring scenarios:<br> **Table rows**: The number of rows returned can be used to work with events such as Windows event logs, Syslog, and application exceptions. <br>**Calculation of a numeric column**: Calculations based on any numeric column can be used to include any number of resources. An example is CPU percentage. |
139+
|Measure|Log alerts can measure two different things, which can be used for different monitoring scenarios:<br> **Table rows**: The number of rows returned can be used to work with events such as Windows event logs, Syslog, and application exceptions. <br> **Calculation of a numeric column**: Calculations based on any numeric column can be used to include any number of resources. An example is CPU percentage. |
123140
|Aggregation type| The calculation performed on multiple records to aggregate them to one numeric value by using the aggregation granularity. Examples are Total, Average, Minimum, or Maximum. |
124141
|Aggregation granularity| The interval for aggregating multiple records to one numeric value.|
125142

@@ -420,7 +437,7 @@ ARM templates for activity log alerts contain additional properties for the cond
420437
|resourceGroup |Name of the resource group for the affected resource in the activity log event. |
421438
|resourceProvider |For more information, see [Azure resource providers and types](../../azure-resource-manager/management/resource-providers-and-types.md). For a list that maps resource providers to Azure services, see [Resource providers for Azure services](../../azure-resource-manager/management/resource-providers-and-types.md). |
422439
|status |String describing the status of the operation in the activity event. Possible values are `Started`, `In Progress`, `Succeeded`, `Failed`, `Active`, or `Resolved`. |
423-
|subStatus |Usually, this field is the HTTP status code of the corresponding REST call. This field can also include other strings describing a substatus. Examples of HTTP status codes include `OK` (HTTP Status Code: 200), `No Content` (HTTP Status Code: 204), and `Service Unavailable` (HTTP Status Code: 503), among many others. |
440+
|subStatus |Usually, this field is the HTTP status code of the corresponding REST call. This field can also include other strings describing a sub-status. Examples of HTTP status codes include `OK` (HTTP Status Code: 200), `No Content` (HTTP Status Code: 204), and `Service Unavailable` (HTTP Status Code: 503), among many others. |
424441
|resourceType |The type of the resource that was affected by the event. An example is `Microsoft.Resources/deployments`. |
425442
426443
For more information about the activity log fields, see [Azure activity log event schema](../essentials/activity-log-schema.md).
@@ -445,7 +462,7 @@ You can also create an activity log alert on future events similar to an activit
445462
The current alert rule wizard is different from the earlier experience:
446463
447464
- Previously, search results were included in the payload of the triggered alert and its associated notifications. The email included only 10 rows from the unfiltered results while the webhook payload contained 1,000 unfiltered results. To get detailed context information about the alert so that you can decide on the appropriate action:
448-
- We recommend using [Dimensions](alerts-types.md#narrow-the-target-by-using-dimensions). Dimensions provide the column value that fired the alert, which gives you context for why the alert fired and how to fix the issue.
465+
- We recommend using [Dimensions](alerts-types.md#narrow-the-target-using-dimensions). Dimensions provide the column value that fired the alert, which gives you context for why the alert fired and how to fix the issue.
449466
- When you need to investigate in the logs, use the link in the alert to the search results in logs.
450467
- If you need the raw search results or for any other advanced customizations, use Azure Logic Apps.
451468
- The new alert rule wizard doesn't support customization of the JSON payload.

0 commit comments

Comments
 (0)