Skip to content

Commit f953bf9

Browse files
Merge pull request #229829 from bwren/ci-alert-retire
Migrate from Container insights recommended alerts to Prometheus alerts
2 parents 26a178b + af3ca29 commit f953bf9

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

articles/azure-monitor/containers/container-insights-metric-alerts.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create metric alert rules in Container insights (preview)
33
description: Describes how to create recommended metric alerts rules for a Kubernetes cluster in Container insights.
44
ms.topic: conceptual
5-
ms.date: 09/28/2022
5+
ms.date: 03/13/2023
66
ms.reviewer: aul
77
---
88

@@ -11,7 +11,7 @@ ms.reviewer: aul
1111
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.
1212

1313
> [!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.
1515
1616
## Types of metric alert rules
1717

@@ -20,7 +20,7 @@ There are two types of metric rules used by Container insights based on either P
2020
| Alert rule type | Description |
2121
|:---|:---|
2222
| [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. |
2424

2525
## Prometheus alert rules
2626

@@ -30,7 +30,7 @@ There are two types of metric rules used by Container insights based on either P
3030

3131
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).
3232

33-
### Enable alert rules
33+
### Enable Prometheus alert rules
3434

3535
The only method currently available for creating Prometheus alert rules is an Azure Resource Manager template (ARM template).
3636

@@ -44,7 +44,7 @@ The only method currently available for creating Prometheus alert rules is an Az
4444
> [!NOTE]
4545
> 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.
4646
47-
### Edit alert rules
47+
### Edit Prometheus alert rules
4848

4949
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.
5050

@@ -94,18 +94,19 @@ The configuration change can take a few minutes to finish before it takes effect
9494
9595
## Metric alert rules
9696
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).
9899
99100
### Prerequisites
100101
101102
- You might need to enable collection of custom metrics for your cluster. See [Metrics collected by Container insights](container-insights-custom-metrics.md).
102103
- See the supported regions for custom metrics at [Supported regions](../essentials/metrics-custom-overview.md#supported-regions).
103104
104-
### Enable and configure alert rules
105+
### Enable and configure metric alert rules
105106
106107
#### [Azure portal](#tab/azure-portal)
107108
108-
#### Enable alert rules
109+
#### Enable metric alert rules
109110
110111
1. On the **Insights** menu for your cluster, select **Recommended alerts**.
111112
@@ -119,15 +120,15 @@ The configuration change can take a few minutes to finish before it takes effect
119120
120121
:::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.":::
121122
122-
#### Edit alert rules
123+
#### Edit metric alert rules
123124
124125
To edit the threshold for a rule or configure an [action group](../alerts/action-groups.md) for your Azure Kubernetes Service (AKS) cluster.
125126
126127
1. From Container insights for your cluster, select **Recommended alerts**.
127128
2. Select the **Rule Name** to open the alert rule.
128129
3. See [Create an alert rule](../alerts/alerts-create-new-alert-rule.md?tabs=metric) for information on the alert rule settings.
129130
130-
#### Disable alert rules
131+
#### Disable metric alert rules
131132
132133
1. From Container insights for your cluster, select **Recommended alerts**.
133134
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
136137
137138
For custom metrics, a separate ARM template is provided for each alert rule.
138139
139-
#### Enable alert rules
140+
#### Enable metric alert rules
140141
141142
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).
142143
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.
143144
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).
144145
145-
#### Disable alert rules
146+
#### Disable metric alert rules
146147
147148
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`.
148149
149150
---
150151
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+
151159
## Alert rule details
152160
153161
The following sections present information on the alert rules provided by Container insights.

articles/azure-monitor/containers/container-insights-troubleshoot.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ The solution to this issue is to clean up the existing resources of the Containe
179179
180180
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.
181181
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+
182186
## Next steps
183187
184188
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

Comments
 (0)