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
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Cost optimization settings offer users the ability to customize and control the
16
16
17
17
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.
18
18
19
-
The following table describes the supported data collection settings
19
+
The following table describes the supported data collection settings:
@@ -46,7 +46,7 @@ The settings allow you specify which tables you want to collect using streams. T
46
46
This table outlines the list of the container insights Log Analytics tables for which data collection settings are applicable.
47
47
48
48
>[!NOTE]
49
-
>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)
49
+
>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).
50
50
51
51
| ContainerInsights Table Name | Is Data collection setting: interval applicable? | Is Data collection setting: namespaces applicable? | Remarks |
52
52
| --- | --- | --- | --- |
@@ -60,7 +60,7 @@ This table outlines the list of the container insights Log Analytics tables for
60
60
| Perf | Yes | Yes\*|\*Data collection setting for namespaces is not applicable for the Kubernetes Node related metrics since the Kubernetes Node is not a namespace scoped object. |
61
61
| 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 |
62
62
63
-
## Custom Metrics
63
+
## Custom metrics
64
64
65
65
| Metric namespace | Is Data collection setting: interval applicable? | Is Data collection setting: namespaces applicable? | Remarks |
66
66
| --- | --- | --- | --- |
@@ -93,7 +93,7 @@ resources
93
93
94
94
Reference the [Limitations](./container-insights-cost-config.md#limitations) section for information on migrating your Recommended alerts.
95
95
96
-
## Pre-requisites
96
+
## Prerequisites
97
97
98
98
- AKS Cluster MUST be using either System or User Assigned Managed Identity
99
99
- If the AKS Cluster is using Service Principal, you must upgrade to [Managed Identity](../../aks/use-managed-identity.md#enable-managed-identities-on-an-existing-aks-cluster)
@@ -166,7 +166,7 @@ Create a file and provide values for _interval_, _namespaceFilteringMode_, _name
166
166
> [!NOTE]
167
167
> Minimum Azure CLI version 2.51.0 or higher.
168
168
169
-
Use the following command to enable monitoring of your AKS cluster
169
+
Use the following command to enable monitoring of your AKS cluster:
170
170
171
171
```azcli
172
172
az aks create -g myResourceGroup -n myAKSCluster --enable-managed-identity --node-count 1 --enable-addons monitoring --data-collection-settings dataCollectionSettings.json --generate-ssh-keys
@@ -199,19 +199,19 @@ az aks enable-addons -a monitoring -g <clusterResourceGroup> -n <clusterName> --
199
199
```
200
200
201
201
## [Azure portal](#tab/create-portal)
202
-
1. In the Azure portal, select the AKS cluster that you wish to monitor
202
+
1. In the Azure portal, select the AKS cluster that you wish to monitor.
203
203
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
204
-
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
205
-
4. If you are configuring Container Insights for the first time or have not migrated to using [managed identity authentication](../containers/container-insights-onboard.md#authentication), select the "Use managed identity" checkbox
204
+
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.
205
+
4. If you are configuring Container Insights for the first time or have not migrated to using [managed identity authentication](../containers/container-insights-onboard.md#authentication), select the "Use managed identity" checkbox.
206
206
[](media/container-insights-cost-config/cost-settings-onboarding.png#lightbox)
207
207
5. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit collection settings"
208
208
[](media/container-insights-cost-config/advanced-collection-settings.png#lightbox)
209
-
6. Click the blue "Configure" button to finish
209
+
6. Click the blue "Configure" button to finish.
210
210
211
211
212
212
## [ARM](#tab/create-arm)
213
213
214
-
1. Download the Azure Resource Manager Template and Parameter files
214
+
1. Download the Azure Resource Manager Template and Parameter files.
- For _enableContainerLogV2_, specify this parameter to be true or false. By default, this parameter is set to true.
234
234
- For _streams_, select the container insights tables you want to collect. Refer to the above mapping for more details.
235
235
236
-
3. Deploy the ARM template
236
+
3. Deploy the ARM template.
237
237
238
238
```azcli
239
239
az login
@@ -260,25 +260,25 @@ The collection settings can be modified through the input of the `dataCollection
260
260
261
261
*`interval`: The frequency of data collection, the input scheme must be a number between [1, 30] followed by m to denote minutes.
262
262
*`namespaceFilteringMode`: The filtering mode for the namespaces, the input must be either Include, Exclude, or Off.
263
-
*`namespaces`: An array of Kubernetes namespaces as strings, to be included or excluded
263
+
*`namespaces`: An array of Kubernetes namespaces as strings, to be included or excluded.
264
264
*`enableContainerLogV2`: Boolean flag to enable ContainerLogV2 schema. If set to true, the stdout/stderr Logs are ingested to [ContainerLogV2](container-insights-logging-v2.md) table, else the container logs are ingested to ContainerLog table, unless otherwise specified in the ConfigMap. When specifying the individual streams, you must include the corresponding table for ContainerLog or ContainerLogV2.
265
265
*`streams`: An array of container insights table streams. See the supported streams above to table mapping.
266
266
267
267
## [Azure portal](#tab/create-portal)
268
-
1. In the Azure portal, select the AKS hybrid cluster that you wish to monitor
268
+
1. In the Azure portal, select the AKS hybrid cluster that you wish to monitor.
269
269
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
270
-
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
270
+
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.
271
271
[](media/container-insights-cost-config/cost-settings-onboarding.png#lightbox)
272
272
4. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit collection settings"
273
-
[](media/container-insights-cost-config/advanced-collection-settings.png#lightbox)
274
-
5. Click the blue "Configure" button to finish
273
+
[](media/container-insights-cost-config/advanced-collection-settings.png#lightbox).
274
+
5. Click the blue "Configure" button to finish.
275
275
276
276
277
277
278
278
## [ARM](#tab/create-arm)
279
279
280
280
281
-
1. Download the Azure Resource Manager Template and Parameter files
281
+
1. Download the Azure Resource Manager Template and Parameter files.
- For _streams_, select the container insights tables you want to collect. Refer to the above mapping for more details.
302
302
303
303
304
-
3. Deploy the ARM template
304
+
3. Deploy the ARM template.
305
305
306
306
```azcli
307
307
az login
@@ -333,19 +333,19 @@ The collection settings can be modified through the input of the `dataCollection
333
333
*`streams`: An array of container insights table streams. See the supported streams above to table mapping.
334
334
335
335
## [Azure portal](#tab/create-portal)
336
-
1. In the Azure portal, select the Arc cluster that you wish to monitor
336
+
1. In the Azure portal, select the Arc cluster that you wish to monitor.
337
337
2. From the resource pane on the left, select the 'Insights' item under the 'Monitoring' section.
338
-
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
338
+
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.
339
339
4. If you are configuring Container Insights for the first time, select the "Use managed identity" checkbox
340
-
[](media/container-insights-cost-config/cost-settings-onboarding.png#lightbox)
340
+
[](media/container-insights-cost-config/cost-settings-onboarding.png#lightbox).
341
341
5. Using the dropdown, choose one of the "Cost presets", for more configuration, you may select the "Edit advanced collection settings"
342
-
[](media/container-insights-cost-config/advanced-collection-settings.png#lightbox)
343
-
6. Click the blue "Configure" button to finish
342
+
[](media/container-insights-cost-config/advanced-collection-settings.png#lightbox).
343
+
6. Click the blue "Configure" button to finish.
344
344
345
345
346
346
## [ARM](#tab/create-arm)
347
347
348
-
1. Download the Azure Resource Manager Template and Parameter files
348
+
1. Download the Azure Resource Manager Template and Parameter files.
0 commit comments