Skip to content

Commit 5dabb3a

Browse files
authored
Merge pull request #275425 from cdpark/horz-monitor-container
User Story 246543: Q&M: Curate 27 SOX Azure Monitor horizontals articles to reduce duplication - Container Instances
2 parents 3378c21 + a3d64ad commit 5dabb3a

9 files changed

+132
-218
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,11 @@
11351135
"redirect_url": "/azure/container-instances/container-instances-multi-container-group",
11361136
"redirect_document_id": false
11371137
},
1138+
{
1139+
"source_path_from_root": "/articles/container-instances/container-instances-monitor.md",
1140+
"redirect_url": "/azure/container-instances/monitor-azure-container-instances",
1141+
"redirect_document_id": false
1142+
},
11381143
{
11391144
"source_path_from_root": "/articles/cassandra-managed-instance/compare-cosmosdb-managed-instance.md",
11401145
"redirect_url": "/azure/managed-instance-apache-cassandra/compare-cosmosdb-managed-instance",

articles/container-instances/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
href: container-instances-update.md
165165
- name: Monitor and log
166166
items:
167-
- name: Monitor
167+
- name: Monitor Container Instances
168168
href: monitor-azure-container-instances.md
169169
- name: Monitor CPU and memory usage
170170
href: container-instances-monitor.md

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: 4 additions & 54 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

@@ -222,7 +172,7 @@ For more information about querying logs and configuring alerts in Azure Monitor
222172

223173
For information about monitoring container instance CPU and memory resources, see:
224174

225-
* [Monitor container resources in Azure Container Instances](container-instances-monitor.md).
175+
* [Monitor Azure Container Instances](monitor-azure-container-instances.md).
226176

227177
<!-- IMAGES -->
228178
[log-search-01]: ./media/container-instances-log-analytics/portal-query-01.png

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

Lines changed: 0 additions & 150 deletions
This file was deleted.

articles/container-instances/container-instances-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Some features are currently restricted to Linux containers:
5959

6060
* Multiple containers per container group
6161
* Volume mounting ([Azure Files](container-instances-volume-azure-files.md), [emptyDir](container-instances-volume-emptydir.md), [GitRepo](container-instances-volume-gitrepo.md), [secret](container-instances-volume-secret.md))
62-
* [Resource usage metrics](container-instances-monitor.md) with Azure Monitor
62+
* [Resource usage metrics](monitor-azure-container-instances.md#get-metrics) with Azure Monitor
6363
* [GPU resources](container-instances-gpu.md) (preview)
6464

6565
For Windows container deployments, use images based on common [Windows base images](./container-instances-faq.yml#what-windows-base-os-images-are-supported-).

articles/container-instances/container-instances-troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ This error indicates that due to heavy load in the region in which you are attem
9898
## Issues during container group runtime
9999
### Container had an isolated restart without explicit user input
100100

101-
There are two broad categories for why a container group may restart without explicit user input. First, containers may experience restarts caused by an application process crash. The ACI service recommends applying observability solutions such as [Application Insights SDK](../azure-monitor/app/app-insights-overview.md), [container group metrics](container-instances-monitor.md), and [container group logs](container-instances-get-logs.md) to determine why the application experienced issues. Second, customers may experience restarts initiated by the ACI infrastructure due to maintenance events. To increase the availability of your application, run multiple container groups behind an ingress component such as an [Application Gateway](../application-gateway/overview.md) or [Traffic Manager](../traffic-manager/traffic-manager-overview.md).
101+
There are two broad categories for why a container group may restart without explicit user input. First, containers may experience restarts caused by an application process crash. The ACI service recommends applying observability solutions such as [Application Insights SDK](../azure-monitor/app/app-insights-overview.md), [container group metrics](monitor-azure-container-instances.md#get-metrics), and [container group logs](container-instances-get-logs.md) to determine why the application experienced issues. Second, customers may experience restarts initiated by the ACI infrastructure due to maintenance events. To increase the availability of your application, run multiple container groups behind an ingress component such as an [Application Gateway](../application-gateway/overview.md) or [Traffic Manager](../traffic-manager/traffic-manager-overview.md).
102102

103103
### Container continually exits and restarts (no long-running process)
104104

0 commit comments

Comments
 (0)