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-cost-config.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,27 @@ ms.reviewer: aul
8
8
9
9
# Enable cost optimization settings (preview)
10
10
11
-
Cost optimization settings offer users the ability to customize and control the metrics data collected through the Container Insights agent. This preview supports the data collection settings such as data collection interval and namespaces to exclude for the data collection through [Azure Monitor Data Collection Rules (DCR)](../essentials/data-collection-rule-overview.md). This can be used for controlling the volume of ingestion and reduce the monitoring costs.
11
+
Cost optimization settings offer users the ability to customize and control the metrics data collected through the container insights agent. This preview supports the data collection settings such as data collection interval and namespaces to exclude for the data collection through [Azure Monitor Data Collection Rules (DCR)](../essentials/data-collection-rule-overview.md). These settings control the volume of ingestion and reduce the monitoring costs of container insights.
12
12
13
13
>[!NOTE]
14
14
>This feature is currently in public preview. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
15
15
16
16
17
17
## Data collection parameters
18
18
19
-
The container insights agent periodically checks for the data collection settings, validates, and applies the applicable settings to applicable Container Insights Log Analytics tables and Custom Metrics. The data collection settings should be applied in the subsequent configured Data collection interval.
19
+
The container insights agent periodically checks for the data collection settings, validates, and applies the applicable settings to applicable container insights Log Analytics tables and Custom Metrics. The data collection settings should be applied in the subsequent configured Data collection interval.
20
20
21
21
The following table describes the supported data collection settings
|**interval**|\[1m, 30m] in 1m intervals | This value determines how often data is collected. The default value is 1m, where m denotes the minutes. If the value is outside the allowed range, then default value is set to be _1m_ (i.e., 60 seconds). |
26
-
| **namespaceFilteringMode** | Include, Exclude, or Off | Choosing Include collects only data from the values in the namespaces field. Choosing Exclude collects data from all namespaces except for the values in the namespaces field. Off will ignore any namespace selections and collect data on all namespaces.
27
-
|**namespaces**| An array of names i.e. \["kube-system", "default"]| Array of comma separated Kubernetes namespaces for which inventory and perf data will be included or excluded based on the _namespaceFilteringMode_. For example, **namespaces** = ["kube-system", "default"] with an _Include_ setting will collect only these two namespaces. With an _Exclude_ setting, the agent will collect data from all other namespaces except for _kube-system_ and _default_. With an _Off_ setting, the agent will collect data from all namespaces including _kube-system_ and _default_. Invalid and unrecognized namespaces will be ignored. |
25
+
|**interval**|\[1m, 30m] in 1m intervals | This value determines how often the agent collects data. The default value is 1m, where m denotes the minutes. If the value is outside the allowed range, then this value defaults to _1m_ (60 seconds). |
26
+
| **namespaceFilteringMode** | Include, Exclude, or Off | Choosing Include collects only data from the values in the namespaces field. Choosing Exclude collects data from all namespaces except for the values in the namespaces field. Off ignores any namespace selections and collect data on all namespaces.
27
+
|**namespaces**| An array of names i.e. \["kube-system", "default"]| Array of comma separated Kubernetes namespaces for which inventory and perf data will be included or excluded based on the _namespaceFilteringMode_. For example, **namespaces** = ["kube-system", "default"] with an _Include_ setting collects only these two namespaces. With an _Exclude_ setting, the agent will collect data from all other namespaces except for _kube-system_ and _default_. With an _Off_ setting, the agent collects data from all namespaces including _kube-system_ and _default_. Invalid and unrecognized namespaces are ignored. |
28
28
29
29
## Log Analytics data collection
30
30
31
-
The table below outlines the list of the container insights Log Analytics tables for which data collection settings are applicable.
31
+
This table outlines the list of the container insights Log Analytics tables for which data collection settings are applicable.
32
32
33
33
>[!NOTE]
34
34
>This feature configures settings for all container insights tables (excluding ContainerLog), to configure settings on the ContainerLog please update the ConfigMap listed in documentation for [agent data Collection settings](../containers/container-insights-agent-config.md)
@@ -43,7 +43,7 @@ The table below outlines the list of the container insights Log Analytics tables
43
43
| KubeServices | Yes | Yes ||
44
44
| KubeEvents | No | Yes | Data collection setting interval is not applicable for the Kubernetes Events |
45
45
| Perf | Yes | Yes\*|\*Data collection setting namespaces is not applicable for the Kubernetes Node related metrics since the Kubernetes Node is not a namespace scoped object. |
46
-
| InsightsMetrics| Yes\*\*| Yes\*\*|\*\*Data collection settings are only applicable for the metrics which collected with following namespaces: container.azm.ms/kubestate, container.azm.ms/pv and container.azm.ms/gpu |
46
+
| InsightsMetrics| Yes\*\*| Yes\*\*|\*\*Data collection settings are only applicable for the metrics collecting the following namespaces: container.azm.ms/kubestate, container.azm.ms/pv and container.azm.ms/gpu |
47
47
48
48
## Custom Metrics
49
49
@@ -55,9 +55,9 @@ The table below outlines the list of the container insights Log Analytics tables
If you are currently using the above tables for charts or alerts, then modifying your data collection settings may degrade those experiences if you are excluding namespaces or reducing data collection frequency. Please review your existing alerts, dashboards, and workbooks using this data.
58
+
If you are currently using the above tables for charts or alerts, then modifying your data collection settings may degrade those experiences. If you are excluding namespaces or reducing data collection frequency, review your existing alerts, dashboards, and workbooks using this data.
59
59
60
-
To scan for alerts that may be referencing these tables, please run the following Azure Resource Graph query:
60
+
To scan for alerts that may be referencing these tables, run the following Azure Resource Graph query:
61
61
62
62
```Kusto
63
63
resources
@@ -71,12 +71,12 @@ resources
71
71
| order by tolower(name) asc
72
72
```
73
73
74
-
Please reference the [Limitations](./container-insights-cost-config.md#limitations) section below for information on migrating your Recommended alerts.
74
+
Reference the [Limitations](./container-insights-cost-config.md#limitations) section for information on migrating your Recommended alerts.
75
75
76
76
## Pre-requisites
77
77
78
78
- AKS Cluster MUST be using either System or User Assigned Managed Identity
79
-
- If the AKS Cluster is using Service Principal, it MUST be upgraded to use[Managed Identity](../../aks/use-managed-identity.md#update-an-aks-cluster-to-use-a-managed-identity)
79
+
- If the AKS Cluster is using Service Principal, you must upgrade to[Managed Identity](../../aks/use-managed-identity.md#update-an-aks-cluster-to-use-a-managed-identity)
80
80
81
81
- Azure CLI: Minimum version required for Azure CLI is 2.45.0. Run az --version to find the version, and run az upgrade to upgrade the version. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli]
82
82
- For AKS clusters, aks-preview version 0.5.125 or higher
@@ -89,7 +89,7 @@ Cost presets and collection settings are available for selection in the Azure Po
| Syslog | 1m | None | Enabled by default (but can be turned off) |
92
+
| Syslog | 1m | None | Enabled by default |
93
93
94
94
## Configuring AKS data collection settings using Azure CLI
95
95
@@ -107,7 +107,7 @@ The default schema for the config file follows this format:
107
107
108
108
*`interval`: The frequency of data collection, the input scheme must be a number between [1, 30] followed by m to denote minutes.
109
109
*`namespaceFilteringMode`: The filtering mode for the namespaces, the input must be either Include, Exclude, or Off.
110
-
*`namespaces`: An array of Kubernetes namespaces as strings, to be included or excluded
110
+
*`namespaces`: An array of Kubernetes namespaces as strings for inclusion or exclusion
111
111
112
112
Example input:
113
113
@@ -156,7 +156,7 @@ az aks enable-addons -a monitoring --enable-msi-auth-for-monitoring -g <clusterR
156
156
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
157
157
3. If you have not previously configured Container Insights, select the 'Configure Azure Monitor' button. For clusters already onboarded to Insights, select the "Monitoring Settings" button in the toolbar
158
158
4. If you are configuring Container Insights for the first time or have not migrated to using [managed identity authentication (preview)](../containers/container-insights-onboard.md#authentication), select the "Use managed identity (preview)" checkbox
159
-
5. Using the dropdown, choose one of the "Cost presets", for additional configuration, you may select the "Edit profile settings"
159
+
5. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit profile settings"
160
160
6. Click the blue "Configure" button to finish
161
161
162
162
@@ -212,7 +212,7 @@ The collection settings can be modified through the input of the `dataCollection
212
212
1. In the Azure portal, select the AKS hybrid cluster that you wish to monitor
213
213
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
214
214
3. If you have not previously configured Container Insights, select the 'Configure Azure Monitor' button. For clusters already onboarded to Insights, select the "Monitoring Settings" button in the toolbar
215
-
4. Using the dropdown, choose one of the "Cost presets", for additional configuration, you may select the "Edit advanced collection settings"
215
+
4. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit advanced collection settings"
216
216
5. Click the blue "Configure" button to finish
217
217
218
218
@@ -270,7 +270,7 @@ The collection settings can be modified through the input of the `dataCollection
270
270
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
271
271
3. If you have not previously configured Container Insights, select the 'Configure Azure Monitor' button. For clusters already onboarded to Insights, select the "Monitoring Settings" button in the toolbar
272
272
4. If you are configuring Container Insights for the first time, select the "Use managed identity (preview)" checkbox
273
-
5. Using the dropdown, choose one of the "Cost presets", for additional configuration, you may select the "Edit advanced collection settings"
273
+
5. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit advanced collection settings"
274
274
6. Click the blue "Configure" button to finish
275
275
276
276
@@ -318,5 +318,5 @@ To update your data collection Settings, modify the values in parameter files an
318
318
319
319
## Limitations
320
320
321
-
- Recommended alerts will not work as expected if the Data collection interval is configured more than 1 minute interval. To continue using Recommended alerts, please migrate to the [Prometheus metrics addon](../essentials/prometheus-metrics-overview.md)
322
-
- There will be gaps in Trend Line Charts of Deployments workbook if configured Data collection interval more than time granularity of the selected Time Range.
321
+
- Recommended alerts will not work as intended if the Data collection interval is configured more than 1 minute interval. To continue using Recommended alerts, please migrate to the [Prometheus metrics addon](../essentials/prometheus-metrics-overview.md)
322
+
- There may be gaps in Trend Line Charts of Deployments workbook if configured Data collection interval more than time granularity of the selected Time Range.
0 commit comments