Skip to content

Commit 827abd3

Browse files
authored
Update proactive-failure-diagnostics.md
Add information on creation and management of failure anomalies alert rules
1 parent d07b3b5 commit 827abd3

File tree

1 file changed

+49
-9
lines changed

1 file changed

+49
-9
lines changed

articles/azure-monitor/alerts/proactive-failure-diagnostics.md

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,58 @@ The alerts are triggered by our proprietary machine learning algorithm so we can
5555
* There is logic that can automatically resolve the fired alert monitor condition, if the issue is no longer detected for 8-24 hours.
5656
Note: in the current design. a notification or action will not be sent when a Smart Detection alert is resolved. You can check if a Smart Detection alert was resolved in the Azure portal.
5757

58-
## Configure alerts
58+
## Managing Failure Anomalies alert rules
5959

60-
You can disable Smart Detection alert rule from the portal or using Azure Resource Manager ([see template example](./proactive-arm-config.md)).
60+
### Alert rule creation
61+
62+
Failure Anomalies alert rule is automatically created together with your Application Insights resource and is automatically configured to analyze the telemetry on that resource.
63+
If for some reason the Failure Anomalies alert rule was not created, or if you deleted it by chance or on purpose, you can create the rule again using Azure [REST API](https://learn.microsoft.com/rest/api/monitor/smart-detector-alert-rules?view=rest-monitor-2019-06-01) or using a Resource Manager template.
64+
65+
Following is a example of a Resource Manager template for creating a Failure Anomalies alert rule.
66+
67+
```json
68+
{
69+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
70+
"contentVersion": "1.0.0.0",
71+
"resources": [
72+
{
73+
"type": "microsoft.alertsmanagement/smartdetectoralertrules",
74+
"apiVersion": "2019-03-01",
75+
"name": "Response Latency Degradation - my-app",
76+
"location": "global",
77+
"properties": {
78+
"description": "Response Latency Degradation notifies you of an unusual increase in latency in your app response to requests.",
79+
"state": "Enabled",
80+
"severity": "2",
81+
"frequency": "PT1M",
82+
"detector": {
83+
"id": "FailureAnomaliesDetector",
84+
"parameters": null,
85+
"name": "Failure Anomalies",
86+
"supportedCadences": [
87+
1
88+
],
89+
"supportedResourceTypes": [
90+
"ApplicationInsights"
91+
],
92+
"parameterDefinitions": []
93+
},
94+
"scope": ["/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/microsoft.insights/components/my-app"],
95+
"actionGroups": {
96+
"groupIds": ["/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/MyResourceGroup/providers/microsoft.insights/actiongroups/MyActionGroup"]
97+
}
98+
}
99+
}
100+
]
101+
}
102+
```
103+
### Alert rule configuration
61104

62-
This alert rule is created with an associated [Action Group](./action-groups.md) named "Application Insights Smart Detection" that contains email and webhook actions, and can be extended to trigger additional actions when the alert fires.
105+
You can disable Smart Detection alert rule from the portal or using Azure Resource Manager ([see template example](./proactive-arm-config.md)).
63106

64-
> [!NOTE]
65-
> Email notifications sent from this alert rule are now sent by default to users associated with the subscription's Monitoring Reader and Monitoring Contributor roles. More information on this is available [here](./proactive-email-notification.md).
66-
> Notifications sent from this alert rule follow the [common alert schema](./alerts-common-schema.md).
67-
>
107+
This alert rule is created with an associated [Action Group](./action-groups.md) named "Application Insights Smart Detection". By default, this action group is configured for Email Azure Resource Manager Role actions and sends notification to your subscription Azure Resource Manager Monitoring Contributor and Monitoring Reader users. You can modify this action group, remove it, or add more action group, just as for any other Azure alert rule. Notifications sent from this alert rule follow the [common alert schema](./alerts-common-schema.md).
68108

69-
Open the Alerts page. Failure Anomalies alert rules are included along with any alerts that you have set manually, and you can see whether it is currently in the alert state.
109+
To configure Failure Anomalies alert rules in the portal, open the Alerts page and select Alert Rules. Failure Anomalies alert rules are included along with any alerts that you have set manually, and you can see whether it is currently in the alert state.
70110

71111
:::image type="content" source="./media/proactive-failure-diagnostics/021.png" alt-text="On the Application Insights resource page, click Alerts tile, then Manage alert rules." lightbox="./media/proactive-failure-diagnostics/021.png":::
72112

@@ -76,7 +116,7 @@ Click the alert to configure it.
76116

77117
## Delete alerts
78118

79-
You can disable or delete a Failure Anomalies alert rule.
119+
You can delete a Failure Anomalies alert rule.
80120

81121
You can do so manually on the Alert rules page or with the following Azure CLI command:
82122

0 commit comments

Comments
 (0)