Skip to content

Commit 50c60c0

Browse files
authored
public repo edit
1 parent 4d24333 commit 50c60c0

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The following alert-based metrics have unique behavior characteristics compared
7272

7373
* *cpuExceededPercentage*, *memoryRssExceededPercentage*, and *memoryWorkingSetExceededPercentage* metrics are sent when the CPU, memory Rss, and Memory Working set values exceed the configured threshold (the default threshold is 95%). These thresholds are exclusive of the alert condition threshold specified for the corresponding alert rule. Meaning, if you want to collect these metrics and analyze them from [Metrics explorer](../platform/metrics-getting-started.md), we recommend you configure the threshold to a value lower than your alerting threshold. The configuration related to the collection settings for their container resource utilization thresholds can be overridden in the ConfigMaps file under the section `[alertable_metrics_configuration_settings.container_resource_utilization_thresholds]`. See the section [Configure alertable metrics ConfigMaps](#configure-alertable-metrics-in-configmaps) for details related to configuring your ConfigMap configuration file.
7474

75-
* *pvUsageExceededPercentage* metric is sent when the persistent volume usage percentage exceeds the configured threshold (the default threshold is 60%). This threshold is exclusive of the alert condition threshold specified for the corresponding alert rule. Meaning, if you want to collect these metrics and analyze them from [Metrics explorer](../platform/metrics-getting-started.md), we recommend you configure the threshold to a value lower than your alerting threshold. The configuration related to the collection settings for persistent volume utilization thresholds can be overridden in the ConfigMaps file under the section `[alertable_metrics_configuration_settings.pv_utilization_thresholds]`. See the section [Configure alertable metrics ConfigMaps](#configure-alertable-metrics-in-configmaps) for details related to configuring your ConfigMap configuration file. Collection of persistent volume metrics with claims in the *kube-system* namespace are excluded by default. To enable collection in this namespace, use the section `[metric_collection_settings.collect_kube_system_pv_metrics]` in the ConfigMap file. See [Metric collection settings](https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-agent-config#metric-collection-settings) for details.
75+
* *pvUsageExceededPercentage* metric is sent when the persistent volume usage percentage exceeds the configured threshold (the default threshold is 60%). This threshold is exclusive of the alert condition threshold specified for the corresponding alert rule. Meaning, if you want to collect these metrics and analyze them from [Metrics explorer](../platform/metrics-getting-started.md), we recommend you configure the threshold to a value lower than your alerting threshold. The configuration related to the collection settings for persistent volume utilization thresholds can be overridden in the ConfigMaps file under the section `[alertable_metrics_configuration_settings.pv_utilization_thresholds]`. See the section [Configure alertable metrics ConfigMaps](#configure-alertable-metrics-in-configmaps) for details related to configuring your ConfigMap configuration file. Collection of persistent volume metrics with claims in the *kube-system* namespace are excluded by default. To enable collection in this namespace, use the section `[metric_collection_settings.collect_kube_system_pv_metrics]` in the ConfigMap file. See [Metric collection settings](https://docs.microsoft.com/azure/azure-monitor/insights/container-insights-agent-config#metric-collection-settings) for details.
7676

7777
## Metrics collected
7878

@@ -207,40 +207,40 @@ To view alerts created for the enabled rules, in the **Recommended alerts** pane
207207
208208
## Configure alertable metrics in ConfigMaps
209209
210-
Perform the following steps to configure your ConfigMap configuration file to override the default utilization thresholds. These steps are only applicable for the following alertable metrics.
210+
Perform the following steps to configure your ConfigMap configuration file to override the default utilization thresholds. These steps are applicable only for the following alertable metrics:
211211
212212
* *cpuExceededPercentage*
213213
* *memoryRssExceededPercentage*
214214
* *memoryWorkingSetExceededPercentage*
215215
* *pvUsageExceededPercentage*
216216
217-
1. Edit the ConfigMap yaml file under the section `[alertable_metrics_configuration_settings.container_resource_utilization_thresholds]` or `[alertable_metrics_configuration_settings.pv_utilization_thresholds]`.
217+
1. Edit the ConfigMap YAML file under the section `[alertable_metrics_configuration_settings.container_resource_utilization_thresholds]` or `[alertable_metrics_configuration_settings.pv_utilization_thresholds]`.
218218
219-
- To to modify the *cpuExceededPercentage* threshold to 90% and begin collection of this metric when that threshold is met and exceeded, configure the ConfigMap file using the following example.
219+
- To modify the *cpuExceededPercentage* threshold to 90% and begin collection of this metric when that threshold is met and exceeded, configure the ConfigMap file using the following example:
220220
221-
```
222-
[alertable_metrics_configuration_settings.container_resource_utilization_thresholds]
223-
# Threshold for container cpu, metric will be sent only when cpu utilization exceeds or becomes equal to the following percentage
224-
container_cpu_threshold_percentage = 90.0
225-
# Threshold for container memoryRss, metric will be sent only when memory rss exceeds or becomes equal to the following percentage
226-
container_memory_rss_threshold_percentage = 95.0
227-
# Threshold for container memoryWorkingSet, metric will be sent only when memory working set exceeds or becomes equal to the following percentage
228-
container_memory_working_set_threshold_percentage = 95.0
229-
```
221+
```
222+
[alertable_metrics_configuration_settings.container_resource_utilization_thresholds]
223+
# Threshold for container cpu, metric will be sent only when cpu utilization exceeds or becomes equal to the following percentage
224+
container_cpu_threshold_percentage = 90.0
225+
# Threshold for container memoryRss, metric will be sent only when memory rss exceeds or becomes equal to the following percentage
226+
container_memory_rss_threshold_percentage = 95.0
227+
# Threshold for container memoryWorkingSet, metric will be sent only when memory working set exceeds or becomes equal to the following percentage
228+
container_memory_working_set_threshold_percentage = 95.0
229+
```
230230
231-
- To to modify the *pvUsageExceededPercentage* threshold to 80% and begin collection of this metric when that threshold is met and exceeded, configure the ConfigMap file using the following example.
231+
- To modify the *pvUsageExceededPercentage* threshold to 80% and begin collection of this metric when that threshold is met and exceeded, configure the ConfigMap file using the following example:
232232
233-
```
234-
[alertable_metrics_configuration_settings.pv_utilization_thresholds]
235-
# Threshold for persistent volume usage bytes, metric will be sent only when persistent volume utilization exceeds or becomes equal to the following percentage
236-
pv_usage_threshold_percentage = 80.0
237-
```
233+
```
234+
[alertable_metrics_configuration_settings.pv_utilization_thresholds]
235+
# Threshold for persistent volume usage bytes, metric will be sent only when persistent volume utilization exceeds or becomes equal to the following percentage
236+
pv_usage_threshold_percentage = 80.0
237+
```
238238
239239
2. Run the following kubectl command: `kubectl apply -f <configmap_yaml_file.yaml>`.
240240
241241
Example: `kubectl apply -f container-azm-ms-agentconfig.yaml`.
242242
243-
The configuration change can take a few minutes to finish before taking effect, and all omsagent pods in the cluster will restart. The restart is a rolling restart for all omsagent pods, not all restart at the same time. When the restarts are finished, a message is displayed that's similar to the following and includes the result: `configmap "container-azm-ms-agentconfig" created`.
243+
The configuration change can take a few minutes to finish before taking effect, and all omsagent pods in the cluster will restart. The restart is a rolling restart for all omsagent pods; they don't all restart at the same time. When the restarts are finished, a message is displayed that's similar to the following example and includes the result: `configmap "container-azm-ms-agentconfig" created`.
244244
245245
## Next steps
246246

0 commit comments

Comments
 (0)