You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/container-insights-metric-alerts.md
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Create metric alert rules in Container insights (preview)
3
3
description: Describes how to create recommended metric alerts rules for a Kubernetes cluster in Container insights.
4
4
ms.topic: conceptual
5
-
ms.date: 09/28/2022
5
+
ms.date: 03/13/2023
6
6
ms.reviewer: aul
7
7
---
8
8
@@ -11,7 +11,7 @@ ms.reviewer: aul
11
11
Metric alerts in Azure Monitor proactively identify issues related to system resources of your Azure resources, including monitored Kubernetes clusters. Container insights provides preconfigured alert rules so that you don't have to create your own. This article describes the different types of alert rules you can create and how to enable and configure them.
12
12
13
13
> [!IMPORTANT]
14
-
> Container insights in Azure Monitor now supports alerts based on Prometheus metrics. If you already use alerts based on custom metrics, you should migrate to Prometheus alerts and disable the equivalent custom metric alerts.
14
+
> Container insights in Azure Monitor now supports alerts based on Prometheus metrics, and metric rules will be retired on March 14, 2026. If you already use alerts based on custom metrics, you should migrate to Prometheus alerts and disable the equivalent custom metric alerts.
15
15
16
16
## Types of metric alert rules
17
17
@@ -20,7 +20,7 @@ There are two types of metric rules used by Container insights based on either P
20
20
| Alert rule type | Description |
21
21
|:---|:---|
22
22
| [Prometheus rules](#prometheus-alert-rules) | Alert rules that use metrics stored in [Azure Monitor managed service for Prometheus (preview)](../essentials/prometheus-metrics-overview.md). There are two sets of Prometheus alert rules that you can choose to enable.<br><br>- *Community alerts* are handpicked alert rules from the Prometheus community. Use this set of alert rules if you don't have any other alert rules enabled.<br>- *Recommended alerts* are the equivalent of the custom metric alert rules. Use this set if you're migrating from custom metrics to Prometheus metrics and want to retain identical functionality.
23
-
|[Metric rules](#metric-alert-rules)| Alert rules that use [custom metrics collected for your Kubernetes cluster](container-insights-custom-metrics.md). Use these alert rules if you're not ready to move to Prometheus metrics yet or if you want to manage your alert rules in the Azure portal. |
23
+
|[Metric rules](#metric-alert-rules)| Alert rules that use [custom metrics collected for your Kubernetes cluster](container-insights-custom-metrics.md). Use these alert rules if you're not ready to move to Prometheus metrics yet or if you want to manage your alert rules in the Azure portal. Metric rules will be retired on March 14, 2026. |
24
24
25
25
## Prometheus alert rules
26
26
@@ -30,7 +30,7 @@ There are two types of metric rules used by Container insights based on either P
30
30
31
31
Your cluster must be configured to send metrics to [Azure Monitor managed service for Prometheus](../essentials/prometheus-metrics-overview.md). For more information, see [Collect Prometheus metrics with Container insights](container-insights-prometheus-metrics-addon.md).
32
32
33
-
### Enable alert rules
33
+
### Enable Prometheus alert rules
34
34
35
35
The only method currently available for creating Prometheus alert rules is an Azure Resource Manager template (ARM template).
36
36
@@ -44,7 +44,7 @@ The only method currently available for creating Prometheus alert rules is an Az
44
44
> [!NOTE]
45
45
> Although you can create the Prometheus alert in a resource group different from the target resource, use the same resource group as your target resource.
46
46
47
-
### Edit alert rules
47
+
### Edit Prometheus alert rules
48
48
49
49
To edit the query and threshold or configure an action group for your alert rules, edit the appropriate values in the ARM template and redeploy it by using any deployment method.
50
50
@@ -94,18 +94,19 @@ The configuration change can take a few minutes to finish before it takes effect
94
94
95
95
## Metric alert rules
96
96
97
-
[Metric alert rules](../alerts/alerts-types.md#metric-alerts) use [custom metric data from your Kubernetes cluster](container-insights-custom-metrics.md).
97
+
> [!IMPORTANT]
98
+
> Metric alerts (preview) are retiring and no longer recommended. Please refer to the migration guidance at [Migrate from Container insights recommended alerts to Prometheus recommended alert rules (preview)](#migrate-from-metric-rules-to-prometheus-rules-preview).
98
99
99
100
### Prerequisites
100
101
101
102
- You might need to enable collection of custom metrics for your cluster. See [Metrics collected by Container insights](container-insights-custom-metrics.md).
102
103
- See the supported regions for custom metrics at [Supported regions](../essentials/metrics-custom-overview.md#supported-regions).
103
104
104
-
### Enable and configure alert rules
105
+
### Enable and configure metric alert rules
105
106
106
107
#### [Azure portal](#tab/azure-portal)
107
108
108
-
#### Enable alert rules
109
+
#### Enable metric alert rules
109
110
110
111
1. On the **Insights** menu for your cluster, select **Recommended alerts**.
111
112
@@ -119,15 +120,15 @@ The configuration change can take a few minutes to finish before it takes effect
119
120
120
121
:::image type="content" source="media/container-insights-metric-alerts/select-action-group.png" lightbox="media/container-insights-metric-alerts/select-action-group.png" alt-text="Screenshot that shows selecting an action group.":::
121
122
122
-
#### Edit alert rules
123
+
#### Edit metric alert rules
123
124
124
125
To edit the threshold for a rule or configure an [action group](../alerts/action-groups.md) for your Azure Kubernetes Service (AKS) cluster.
125
126
126
127
1. From Container insights for your cluster, select **Recommended alerts**.
127
128
2. Select the **Rule Name** to open the alert rule.
128
129
3. See [Create an alert rule](../alerts/alerts-create-new-alert-rule.md?tabs=metric) for information on the alert rule settings.
129
130
130
-
#### Disable alert rules
131
+
#### Disable metric alert rules
131
132
132
133
1. From Container insights for your cluster, select **Recommended alerts**.
133
134
1. Change the status for the alert rule to **Disabled**.
@@ -136,18 +137,25 @@ To edit the threshold for a rule or configure an [action group](../alerts/action
136
137
137
138
For custom metrics, a separate ARM template is provided for each alert rule.
138
139
139
-
#### Enable alert rules
140
+
#### Enable metric alert rules
140
141
141
142
1. Download one or all of the available templates that describe how to create the alert from [GitHub](https://github.com/microsoft/Docker-Provider/tree/ci_dev/alerts/recommended_alerts_ARM).
142
143
1. Create and use a [parameters file](../../azure-resource-manager/templates/parameter-files.md) as a JSON to set the values required to create the alert rule.
143
144
1. Deploy the template by using any standard methods for installing ARM templates. For guidance, see [ARM template samples for Azure Monitor](../resource-manager-samples.md).
144
145
145
-
#### Disable alert rules
146
+
#### Disable metric alert rules
146
147
147
148
To disable custom alert rules, use the same ARM template to create the rule, but change the `isEnabled` value in the parameters file to `false`.
148
149
149
150
---
150
151
152
+
153
+
## Migrate from metric rules to Prometheus rules (preview)
154
+
If you're using metric alert rules to monitor your Kubernetes cluster, you should transition to Prometheus recommended alert rules (preview) before March 14, 2026 when metric alerts are retired.
155
+
156
+
1. Follow the steps at [Enable Prometheus alert rules](#enable-prometheus-alert-rules) to configure Prometheus recommended alert rules (preview).
157
+
2. Follow the steps at [Disable metric alert rules](#disable-metric-alert-rules) to remove metric alert rules from your clusters.
158
+
151
159
## Alert rule details
152
160
153
161
The following sections present information on the alert rules provided by Container insights.
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/container-insights-troubleshoot.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,10 @@ The solution to this issue is to clean up the existing resources of the Containe
179
179
180
180
If the preceding steps didn't resolve the installation of Azure Monitor Containers Extension issues, create a support ticket to send to Microsoft for further investigation.
181
181
182
+
## Duplicate alerts being received
183
+
You may have enabled Prometheus alert rules without disabling Container insights recommended alerts. See [Migrate from Container insights recommended alerts to Prometheus recommended alert rules (preview)](container-insights-metric-alerts.md#migrate-from-metric-rules-to-prometheus-rules-preview).
184
+
185
+
182
186
## Next steps
183
187
184
188
When monitoring is enabled to capture health metrics for the AKS cluster nodes and pods, these health metrics are available in the Azure portal. To learn how to use Container insights, see [View Azure Kubernetes Service health](container-insights-analyze.md).
0 commit comments