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/container-apps/alerts.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: cebundy
6
6
ms.service: container-apps
7
7
ms.custom: event-tier1-build-2022
8
8
ms.topic: how-to
9
-
ms.date: 07/29/2022
9
+
ms.date: 08/30/2022
10
10
ms.author: v-bcatherine
11
11
---
12
12
@@ -19,9 +19,9 @@ Azure Monitor alerts notify you so that you can respond quickly to critical issu
19
19
20
20
You can create alert rules from metric charts in the metric explorer and from queries in Log Analytics. You can also define and manage alerts from the **Monitor>Alerts** page. To learn more about alerts, refer to [Overview of alerts in Microsoft Azure](../azure-monitor/alerts/alerts-overview.md).
21
21
22
-
The **Alerts** page in the **Monitoring** section on your container app page displays all of your app's alerts. You can filter the list by alert type, resource, time and severity. You can also modify and create new alerts from this page.
22
+
The **Alerts** page in the **Monitoring** section on your container app page displays all of your app's alerts. You can filter the list by alert type, resource, time and severity. You can also modify and create new alert rules from this page.
23
23
24
-
###Create metric alert rules
24
+
## Create metric alert rules
25
25
26
26
When you create alerts rules based on a metric chart in the metrics explorer, alerts are triggered when the metric data matches alert rule conditions. For more information about creating metrics charts, see [Using metrics explorer](metrics.md#using-metrics-explorer)
27
27
@@ -41,7 +41,7 @@ After creating a metric chart, you can create a new alert rule.
41
41
:::image type="content" source="media/observability/screenshot-alert-details-dialog.png" alt-text="Screen shot of the alert details configuration page.":::
42
42
43
43
44
-
####Add conditions to an alert rule
44
+
### Add conditions to an alert rule
45
45
46
46
To add more conditions to your alert rule:
47
47
@@ -61,7 +61,7 @@ Example of selecting a dimension to split an alert.
61
61
62
62
To learn more about configuring alerts, visit [Create a metric alert for an Azure resource](../azure-monitor/alerts/tutorial-metric-alert.md)
63
63
64
-
###Create log alert rules
64
+
## Create log alert rules
65
65
66
66
You can create log alerts from queries in Log Analytics. When you create an alert rule from a query, the query is run at set intervals triggering alerts when the log data matches the alert rule conditions. To learn more about creating log alert rules, see [Manage log alerts](../azure-monitor/alerts/alerts-log.md).
67
67
@@ -84,5 +84,5 @@ To create an alert rule:
84
84
1. Select **Review + create**.
85
85
1. Select **Create**.
86
86
87
-
[!div class="nextstepaction"]
87
+
>[!div class="nextstepaction"]
88
88
> [View log streams from the Azure portal](log-streaming.md)
Copy file name to clipboardExpand all lines: articles/container-apps/container-console.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: cebundy
6
6
ms.service: container-apps
7
7
ms.custom: event-tier1-build-2022
8
8
ms.topic: how-to
9
-
ms.date: 08/25/2022
9
+
ms.date: 08/30/2022
10
10
ms.author: v-bcatherine
11
11
---
12
12
@@ -17,19 +17,19 @@ Connecting to a container's console is useful when you want to troubleshoot your
17
17
18
18
## Azure portal
19
19
20
-
Select **Console** in the **Monitoring** menu group from your container app page in the Azure portal.
20
+
To connect to a container's console in the Azure portal, follow these steps.
21
21
22
-
* Select the revision, replica and container you want to connect to.
23
-
24
-
* You can choose to access your console via bash, sh, or a custom executable. If you choose a custom executable, it must be available in the container.
22
+
1. Select **Console** in the **Monitoring** menu group from your container app page in the Azure portal.
23
+
1. Select the revision, replica and container you want to connect to.
24
+
1. Choose to access your console via bash, sh, or a custom executable. If you choose a custom executable, it must be available in the container.
25
25
26
26
:::image type="content" source="media/observability/console-ss.png" alt-text="Screenshot of Azure Container Apps Console page.":::
27
27
28
28
## Azure CLI
29
29
30
30
Use the `az containerapp exec` command to connect to a container console. Select **Ctrl-D** to exit the console.
31
31
32
-
For example, connect to a container console in a container app with a single revision, replica, and container using the following command. Replace the \<placeholders\> with your container app's values.
32
+
For example, connect to a container console in a container app with a single container using the following command. Replace the \<placeholders\> with your container app's values.
33
33
34
34
# [Bash](#tab/bash)
35
35
@@ -49,7 +49,13 @@ az containerapp exec `
49
49
50
50
---
51
51
52
-
To connect to a container console in a container app with multiple revisions, replicas, and containers include the `--revision`, `--replica`, and `--container` arguments with the `az containerapp exec` command.
52
+
To connect to a container console in a container app with multiple revisions, replicas, and containers include the following parameters in the `az containerapp exec` command.
53
+
54
+
| Argument | Description |
55
+
|----------|-------------|
56
+
|`--revision`| The revision name of the container connect to. |
57
+
|`--replica`| The replica name of the container o connect to. |
58
+
|`--container`| The container name of the container to connect to. |
53
59
54
60
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
55
61
@@ -97,28 +103,28 @@ az containerapp replica list `
97
103
98
104
---
99
105
100
-
Connect to the container console using the names from the `az containerapp revision list` command.
106
+
Connect to the container console with the `az containerapp exec` command. Replace the \<placeholders\> with your container app's values.
Copy file name to clipboardExpand all lines: articles/container-apps/log-streaming.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: cebundy
6
6
ms.service: container-apps
7
7
ms.custom: event-tier1-build-2022
8
8
ms.topic: how-to
9
-
ms.date: 08/29/2022
9
+
ms.date: 08/30/2022
10
10
ms.author: v-bcatherine
11
11
---
12
12
@@ -59,7 +59,13 @@ az containerapp logs show `
59
59
60
60
---
61
61
62
-
When your app has multiple active revisions, replicas, and containers, you need to specify the container by including the `--revision`, `--replica`, and `--container` arguments in the `az containerapp logs show` command.
62
+
To connect to a container console in a container app with multiple revisions, replicas, and containers include the following parameters in the `az containerapp logs show` command.
63
+
64
+
| Argument | Description |
65
+
|----------|-------------|
66
+
|`--revision`| The revision name of the container connect to. |
67
+
|`--replica`| The replica name of the container o connect to. |
68
+
|`--container`| The container name of the container to connect to. |
63
69
64
70
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
65
71
@@ -107,7 +113,7 @@ az containerapp replica list `
107
113
108
114
---
109
115
110
-
Run the `az container app show` command using the names from the `az containerapp revision list ` command output. Replace the \<placeholders\> with your container app's values.
116
+
Stream the container logs with the `az container app show` command. Replace the \<placeholders\> with your container app's values.
Copy file name to clipboardExpand all lines: articles/container-apps/metrics.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,15 @@ author: cebundy
6
6
ms.service: container-apps
7
7
ms.custom: event-tier1-build-2022
8
8
ms.topic: how-to
9
-
ms.date: 07/29/2022
9
+
ms.date: 08/30/2022
10
10
ms.author: v-bcatherine
11
11
---
12
12
13
13
# Monitor Azure Container Apps metrics
14
14
15
-
Azure Monitor collects metric data from your container app at regular intervals. These metrics help you gain insights into the performance and health of your container app. You can use the metrics explorer in the Azure portal to monitor and analyze the metric data. You can also retrieve metric data through the [Azure CLI](/cli/azure/monitor/metrics) and Azure [PowerShell cmdlets](/powershell/module/az.monitor/get-azmetric).
15
+
Azure Monitor collects metric data from your container app at regular interval to help you gain insights into the performance and health of your container app.
16
+
17
+
The metrics explorer in the Azure portal allows you to visualize the data. You can also retrieve raw metric data through the [Azure CLI](/cli/azure/monitor/metrics) and Azure [PowerShell cmdlets](/powershell/module/az.monitor/get-azmetric).
16
18
17
19
## Available metrics
18
20
@@ -32,7 +34,7 @@ The metrics namespace is `microsoft.app/containerapps`.
32
34
33
35
## Metrics snapshots
34
36
35
-
On your container app **Overview**page in the Azure portal, select the **Monitoring**tab to display charts showing your container app's current CPU, memory, and network utilization.
37
+
Select the **Monitoring**tab on your app's **Overview**page to display charts showing your container app's current CPU, memory, and network utilization.
36
38
37
39
:::image type="content" source="media/observability/metrics-in-overview-page.png" alt-text="Screenshot of the Monitoring section in the container app overview page.":::
38
40
@@ -42,14 +44,14 @@ From this view, you can pin one or more charts to your dashboard or select a cha
42
44
43
45
The Azure Monitor metrics explorer lets you create charts from metric data to help you analyze your container app's resource and network usage over time. You can pin charts to a dashboard or in a shared workbook.
44
46
45
-
1. Open the metrics explorer in the Azure portal by selecting **Metrics** from the sidebar menu on your container app page. To learn more about metrics explorer, go to [Getting started with metrics explorer](../azure-monitor/essentials/metrics-getting-started.md).
47
+
1. Open the metrics explorer in the Azure portal by selecting **Metrics** from the sidebar menu on your container app's page. To learn more about metrics explorer, go to [Getting started with metrics explorer](../azure-monitor/essentials/metrics-getting-started.md).
46
48
47
49
1. Create a chart by selecting **Metric**. You can modify the chart by changing aggregation, adding more metrics, changing time ranges and intervals, adding filters, and applying splitting.
48
50
:::image type="content" source="media/observability/metrics-main-page.png" alt-text="Screenshot of the metrics explorer from the container app resource page.":::
49
51
50
52
### Add filters
51
53
52
-
Optionally, you can create filters based on revisions and replicas. To create a filter:
54
+
Optionally, you can create filters to limit the data shown based on revisions and replicas. To create a filter:
53
55
1. Select **Add filter**.
54
56
1. Select a revision or replica from the **Property** list.
55
57
1. Select values from the **Value** list.
@@ -59,15 +61,18 @@ Optionally, you can create filters based on revisions and replicas. To create a
59
61
60
62
When your chart contains a single metric, you can choose to split the metric information by revision or replica with the exceptions:
61
63
62
-
* The Replica count metric can only split by revision.
63
-
* The requests metric can also be split by status code and status code category.
64
+
* The *Replica count* metric can only split by revision.
65
+
* The *Requests* metric can also be split by status code and status code category.
64
66
65
-
To split by revision:
67
+
To split by revision or replica:
66
68
67
69
1. Select **Apply splitting**
68
-
1. Select **Revision** from the **Values** drop-down list.
70
+
1. Select **Revision** or **Replica** from the **Values** drop-down list.
71
+
1. You can set the limit of the number of revisions or replicas to display in the chart. The default is 10.
72
+
1. You can set Sort order to **Ascending** or **Descending**. The default is **Descending**.
73
+
74
+
:::image type="content" source="media/observability/metrics-splitting.png" alt-text="Screenshot of the metrics explorer showing the chart splitting options.":::
69
75
70
-
:::image type="content" source="media/observability/metrics-apply-splitting.png" alt-text="Screenshot of the metrics explorer that shows a chart with metrics split by revision.":::
Copy file name to clipboardExpand all lines: articles/container-apps/observability.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,20 +39,20 @@ During the development and test phase, real-time access to your containers' appl
39
39
40
40
### Deployment
41
41
42
-
Once you deploy your container app, it's essential to monitor your app. Upon deployment, continuous monitoring helps you quickly identify problems that may occur around error rates, performance, or metrics.
42
+
Once you deploy your container app, continuous monitoring helps you quickly identify problems that may occur around error rates, performance, and resource consumption.
43
43
44
44
Azure Monitor gives you the ability to track your app with the following features:
45
45
46
46
-[Azure Monitor metrics](metrics.md): Monitor and analyze key metrics.
47
-
-[Azure Monitor alerts](alerts.md): Send alerts for critical conditions.
47
+
-[Azure Monitor alerts](alerts.md): Recieve alerts for critical conditions.
48
48
-[Azure Monitor Log Analytics](log-monitoring.md): View and analyze application logs.
49
49
50
50
### Maintenance
51
51
52
52
Container Apps manages updates to your container app by creating [revisions](revisions.md). You can run multiple revisions concurrently in blue green deployments or to perform A/B testing. These observability features will help you monitor your app across revisions:
53
53
54
54
-[Azure Monitor metrics](metrics.md): Monitor and compare key metrics for multiple revisions.
55
-
-[Azure Monitor alerts](alerts.md): Send alerts individual alerts per revision.
55
+
-[Azure Monitor alerts](alerts.md): Receive individual alerts per revision.
56
56
-[Azure Monitor Log Analytics](log-monitoring.md): View, analyze and compare log data for multiple revisions.
0 commit comments