Skip to content

Commit f743caf

Browse files
committed
updates
1 parent e6965be commit f743caf

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

articles/azure-monitor/containers/container-insights-data-collection-configure.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The following table describes the parameters you need to provide values for in e
195195
| `dataCollectionInterval` | Determines how often the agent collects data. Valid values are 1m - 30m in 1m intervals The default value is 1m. If the value is outside the allowed range, then it defaults to *1 m*. |
196196
| `namespaceFilteringModeForDataCollection` | *Include*: Collects only data from the values in the *namespaces* field.<br>*Exclude*: Collects data from all namespaces except for the values in the *namespaces* field.<br>*Off*: Ignores any *namespace* selections and collect data on all namespaces.
197197
| `namespacesForDataCollection` | Array of comma separated Kubernetes namespaces to collect inventory and perf data based on the _namespaceFilteringMode_.<br>For example, *namespaces = ["kube-system", "default"]* with an _Include_ setting collects only these two namespaces. With an _Exclude_ setting, the agent collects 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. |
198-
| `streams` | An array of container insights table streams. See [Stream values in DCR](#stream-values-in-dcr) for a list of the valid streams and their corresponding tables. |
198+
| `streams` | An array of container insights table streams. See [Stream values in DCR](#stream-values-in-dcr) for a list of the valid streams and their corresponding tables. To enable [high scale mode](./container-insights-high-scale.md) for container logs, use `Microsoft-ContainerLogV2-HighScale`. |
199199
| `useAzureMonitorPrivateLinkScope` | Specifies whether to use private link for the cluster connection to Azure Monitor. |
200200
| `azureMonitorPrivateLinkScopeResourceId` | If private link is used, resource ID of the private link scope. |
201201

@@ -237,6 +237,7 @@ When you specify the tables to collect using CLI or ARM, you specify a stream na
237237
| Microsoft-ContainerInventory | ContainerInventory |
238238
| Microsoft-ContainerLog | ContainerLog |
239239
| Microsoft-ContainerLogV2 | ContainerLogV2 |
240+
| Microsoft-ContainerLogV2-HighScale | ContainerLogV2<br>(High scale mode)<sup>1</sup> |
240241
| Microsoft-ContainerNodeInventory | ContainerNodeInventory |
241242
| Microsoft-InsightsMetrics | InsightsMetrics |
242243
| Microsoft-KubeEvents | KubeEvents |
@@ -247,6 +248,9 @@ When you specify the tables to collect using CLI or ARM, you specify a stream na
247248
| Microsoft-KubeServices | KubeServices |
248249
| Microsoft-Perf | Perf |
249250

251+
<sup>1</sup> You shouldn't use both Microsoft-ContainerLogV2 and Microsoft-ContainerLogV2-HighScale in the same DCR. This will result in duplicate data.
252+
253+
250254
## Share DCR with multiple clusters
251255
When you enable Container insights on a Kubernetes cluster, a new DCR is created for that cluster, and the DCR for each cluster can be modified independently. If you have multiple clusters with custom monitoring configurations, you may want to share a single DCR with multiple clusters. You can then make changes to a single DCR that are automatically implemented for any clusters associated with it.
252256

articles/azure-monitor/containers/container-insights-high-scale.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: High scale logs collection in Container Insights (Preview)
33
description: Enable high scale logs collection in Container Insights (Preview).
4-
ms.custom: devx-track-azurecli
4+
ms.topic: conceptual
55
ms.date: 08/06/2024
66
---
77

@@ -22,7 +22,7 @@ Use the following [log queries](../logs/log-query-overview.md) to determine whet
2222

2323
```kql
2424
ContainerLogV2
25-
| where _ResourceId = <AzureResourceIdoftheAKSCluster>
25+
| where _ResourceId = "<AzureResourceIdoftheAKSCluster>"
2626
| summarize count() by bin(TimeGenerated, 1s), Computer
2727
| render timechart
2828
```
@@ -31,7 +31,7 @@ ContainerLogV2
3131

3232
```kusto
3333
ContainerLogV2
34-
| where _ResourceId = <AzureResourceIdoftheAKSCluster>
34+
| where _ResourceId = "<AzureResourceIdoftheAKSCluster>"
3535
| summarize BillableDataMB = sum(_BilledSize)/1024/1024 by bin(TimeGenerated, 1s), Computer
3636
| render timechart
3737
```
@@ -62,10 +62,10 @@ The first step is to update configmap for the cluster to instruct the container
6262

6363
Follow the guidance in [Configure and deploy ConfigMap](./container-insights-data-collection-configmap.md#configure-and-deploy-configmap) to download and update ConfigMap for the cluster. The only different you need to make for high scale logs is to add the following entry under `agent-settings`:
6464

65-
```yml
66-
[agent_settings.high_log_scale]
67-
enabled = true
68-
```
65+
```yml
66+
[agent_settings.high_log_scale]
67+
enabled = true
68+
```
6969

7070
After applying this configmap, `ama-logs-*` pods will get restarted automatically and configure the ama-logs daemonset pods to run in high scale log mode.
7171

@@ -100,9 +100,10 @@ See [Create a private Azure Kubernetes Service (AKS) cluster](/azure/aks/private
100100
- `--ampls-resource-id`
101101

102102
### [ARM](#tab/arm)
103-
See [Enable Container insights](./kubernetes-monitoring-enable.md?tabs=arm#enable-container-insights) for guidance on enabling Container Insights using an ARM template. To enable high scale logs mode, add the following parameter to the ARM template.
103+
See [Enable Container insights](./kubernetes-monitoring-enable.md?tabs=arm#enable-container-insights) for guidance on enabling Container Insights using an ARM template. To enable high scale logs mode, use `Microsoft-ContainerLogV2-HighScale` in the `streams` parameter.
104104

105-
The only requirement to enable high scale mode is to
105+
> [!WARNING]
106+
> Don't use both `Microsoft-ContainerLogV2` and `Microsoft-ContainerLogV2-HighScale` in the `streams` parameter. This will result in logs being collected in the standard mode.
106107
107108
## Next steps
108109

0 commit comments

Comments
 (0)