Skip to content

Commit 68c8125

Browse files
committed
Curate for Monitor duplication
1 parent f20d0d6 commit 68c8125

5 files changed

+19
-66
lines changed

articles/container-instances/container-instances-image-security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Monitor your resource activity, like files, network, and other resources that yo
130130

131131
[Azure Monitor](../azure-monitor/overview.md) enables core monitoring for Azure services by allowing the collection of metrics, activity logs, and diagnostic logs. For example, the activity log tells you when new resources are created or modified.
132132

133-
Metrics are available that provide performance statistics for different resources and even the operating system inside a virtual machine. You can view this data with one of the explorers in the Azure portal and create alerts based on these metrics. Azure Monitor provides the fastest metrics pipeline (5 minutes down to 1 minute), so you should use it for time-critical alerts and notifications.
133+
Metrics are available that provide performance statistics for different resources and even the operating system inside a virtual machine. You can view this data with one of the explorers in the Azure portal and [create alerts](monitor-azure-container-instances.md#alerts) based on these metrics.
134134

135135
### Log all container administrative user access for auditing
136136

articles/container-instances/container-instances-log-analytics.md

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -150,63 +150,13 @@ ContainerInstanceLog_CL
150150

151151
## Log schema
152152

153-
> [!NOTE]
154-
> Some of the columns listed in the following table only exist as part of the schema, and won't have any data emitted in logs. These columns are denoted with a description of 'Empty'.
155-
156-
### ContainerInstanceLog_CL
157-
158-
|Column|Type|Description|
159-
|-|-|-|
160-
|Computer|string|Empty|
161-
|ContainerGroup_s|string|The name of the container group associated with the record|
162-
|ContainerID_s|string|A unique identifier for the container associated with the record|
163-
|ContainerImage_s|string|The name of the container image associated with the record|
164-
|Location_s|string|The location of the resource associated with the record|
165-
|Message|string|If applicable, the message from the container|
166-
|OSType_s|string|The name of the operating system the container is based on|
167-
|RawData|string|Empty|
168-
|ResourceGroup|string|Name of the resource group that the record is associated with|
169-
|Source_s|string|Name of the logging component, "LoggingAgent"|
170-
|SubscriptionId|string|A unique identifier for the subscription that the record is associated with|
171-
|TimeGenerated|datetime|Timestamp when the event was generated by the Azure service processing the request corresponding the event|
172-
|Type|string|The name of the table|
173-
|_ResourceId|string|A unique identifier for the resource that the record is associated with|
174-
|_SubscriptionId|string|A unique identifier for the subscription that the record is associated with|
175-
176-
### ContainerEvent_CL
177-
178-
|Column|Type|Description|
179-
|-|-|-|
180-
|Computer|string|Empty|
181-
|ContainerGroupInstanceId_g|string|A unique identifier for the container group associated with the record|
182-
|ContainerGroup_s|string|The name of the container group associated with the record|
183-
|ContainerName_s|string|The name of the container associated with the record|
184-
|Count_d|real|How many times the event has occurred since the last poll|
185-
|FirstTimestamp_t|datetime|The timestamp of the first time the event occurred|
186-
|Location_s|string|The location of the resource associated with the record|
187-
|Message|string|If applicable, the message from the container|
188-
|OSType_s|string|The name of the operating system the container is based on|
189-
|RawData|string|Empty|
190-
|Reason_s|string|The current status of the container group|
191-
|ResourceGroup|string|The name of the resource group that the record is associated with|
192-
|SubscriptionId|string|A unique identifier for the subscription that the record is associated with|
193-
|TimeGenerated|datetime|Timestamp when the event was generated by the Azure service processing the request corresponding the event|
194-
|Type|string|The name of the table|
195-
|_ResourceId|string|A unique identifier for the resource that the record is associated with|
196-
|_SubscriptionId|string|A unique identifier for the subscription that the record is associated with|
153+
To learn about the Azure Monitor legacy schema for Log Analytics, see [Legacy Log Analytics tables](monitor-azure-container-instances-reference.md#legacy-log-analytics-tables).
197154

198155
## Using Diagnostic Settings
199156

200-
Diagnostic Settings for container groups is a preview feature and it can be enabled through preview features options in Azure portal. Once this feature is enabled for a subscription, Diagnostic Settings can be applied to a container group. Applying Diagnostic Settings causes a container group to restart.
201-
202-
For example, here's how we can use New-AzDiagnosticSetting command to apply a Diagnostic Settings object to a container group.
157+
The newer tables require use of diagnostic settings to route information to Log Analytics. Diagnostic settings for Container Instances is in public preview and it can be enabled through preview features options in the Azure portal.
203158

204-
```azurepowershell
205-
$log = @()
206-
$log += New-AzDiagnosticSettingLogSettingsObject -Enabled $true -Category ContainerInstanceLog -RetentionPolicyDay 7 -RetentionPolicyEnabled $true
207-
208-
New-AzDiagnosticSetting -Name test-setting -ResourceId <container-group-resource-id> -WorkspaceId <log-analytics-workspace-id> -Log $log
209-
```
159+
To learn more, see [Azure Monitor Log Analytics tables](monitor-azure-container-instances-reference.md#azure-monitor-log-analytics-tables).
210160

211161
## Next steps
212162

articles/container-instances/container-instances-monitor.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ At this time, Azure Monitor metrics are only available for Linux containers.
2424

2525
## Available metrics
2626

27-
Azure Monitor provides the following [metrics for Azure Container Instances][supported-metrics]. These metrics are available for a container group and individual containers. By default, the metrics are aggregated as averages.
28-
29-
- **CPU Usage** measured in **millicores**.
30-
- One millicore is 1/1000th of a CPU core, so 500 millicores represents usage of 0.5 CPU core.
31-
- **Memory Usage** in bytes
32-
- **Network bytes received** per second
33-
- **Network bytes transmitted** per second
27+
Azure Monitor provides metrics for Azure Container Instances. For alist of these metrics, see [Supported metrics for Microsoft.ContainerInstance/containerGroups][supported-metrics]. These metrics are available for a container group and individual containers. By default, the metrics are aggregated as averages.
3428

3529
## Get metrics - Azure portal
3630

@@ -147,4 +141,4 @@ Learn how to create [metric alerts][metric-alert] to get notified when a metric
147141
[azure-monitoring]: ../azure-monitor/overview.md
148142
[metric-alert]: ..//azure-monitor/alerts/alerts-metric.md
149143
[monitor-dimension]: ../azure-monitor/essentials/data-platform-metrics.md#multi-dimensional-metrics
150-
[supported-metrics]: ../azure-monitor/essentials/metrics-supported.md#microsoftcontainerinstancecontainergroups
144+
[supported-metrics]: monitor-azure-container-instances-reference#metrics

articles/container-instances/monitor-azure-container-instances-reference.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,18 @@ The following *_CL* tables represent the legacy Log Analytics integration. Users
9595

9696
### Azure Monitor Log Analytics tables
9797

98-
The newer tables require use of a diagnostic setting to route information to Log Analytics. Diagnostic settings for Container Instances in the Azure portal is in public preview. The table names are similar, but without the _CL, and some columns are different. For more information, see [Use diagnostic settings](container-instances-log-analytics.md#using-diagnostic-settings).
98+
The newer tables require use of a diagnostic setting to route information to Log Analytics. Diagnostic settings for Container Instances in the Azure portal is in public preview. The table names are similar, but without the _CL, and some columns are different.
99+
100+
Once this feature is enabled for a subscription, diagnostic settings can be applied to a container group. Applying diagnostic settings causes a container group to restart.
101+
102+
For example, here's how you can use `New-AzDiagnosticSetting` command to apply a diagnostic settings object to a container group.
103+
104+
```azurepowershell
105+
$log = @()
106+
$log += New-AzDiagnosticSettingLogSettingsObject -Enabled $true -Category ContainerInstanceLog -RetentionPolicyDay 7 -RetentionPolicyEnabled $true
107+
108+
New-AzDiagnosticSetting -Name test-setting -ResourceId <container-group-resource-id> -WorkspaceId <log-analytics-workspace-id> -Log $log
109+
```
99110

100111
#### Container Instances
101112
Microsoft.ContainerInstance/containerGroups

articles/container-instances/monitor-azure-container-instances.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ Containers generate similar data as other Azure resources, but they require a co
4141

4242
You can use Log Analytics to analyze and query container instance logs, and you can also enable diagnostic settings as a preview feature in the Azure portal. Log Analytics and diagnostic settings have slightly different table schemas to use for queries. Once you enable diagnostic settings, you can use either or both schemas at the same time.
4343

44-
For detailed information and instructions for querying logs, see [Container group and instance logging with Azure Monitor logs](container-instances-log-analytics.md). For more information about diagnostic settings, see [Use diagnostic settings](container-instances-log-analytics.md#using-diagnostic-settings).
45-
46-
For the Azure Monitor logs table schemas for Container Instances, see [Container Instances monitoring data reference](monitor-azure-container-instances-reference.md#azure-monitor-logs-tables).
44+
For detailed information and instructions for querying logs, see [Container group and instance logging with Azure Monitor logs](container-instances-log-analytics.md). For the Azure Monitor logs table schemas for Container Instances, see [Azure Monitor Logs tables](monitor-azure-container-instances-reference.md#azure-monitor-logs-tables).
4745

4846
[!INCLUDE [horz-monitor-kusto-queries](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)]
4947

0 commit comments

Comments
 (0)