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/metrics.md
+40-30Lines changed: 40 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,42 +5,44 @@ services: container-apps
5
5
author: v-jaswel
6
6
ms.service: container-apps
7
7
ms.topic: how-to
8
-
ms.date: 08/30/2022
8
+
ms.date: 04/30/2024
9
9
ms.author: v-wellsjason
10
10
---
11
11
12
12
# Monitor Azure Container Apps metrics
13
13
14
-
Azure Monitor collects metric data from your container app at regular intervals to help you gain insights into the performance and health of your container app.
14
+
Azure Monitor collects metric data from your container app at regular intervals to help you gain insights into the performance and health of your container app.
15
15
16
16
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).
17
17
18
18
## Available metrics
19
19
20
-
Container Apps provides these metrics.
21
-
22
-
|Title | Description | Metric ID |Unit |
23
-
|---------|---------|---------|---------|
24
-
| CPU Usage | CPU consumed by the container app, in nano cores (1,000,000,000 nanocores = 1 core) | UsageNanoCores|nanocores|
25
-
|Memory Working Set Bytes |Container app working set memory used in bytes|WorkingSetBytes|bytes|
26
-
|Network In Bytes|Network received bytes|RxBytes|bytes|
27
-
|Network Out Bytes|Network transmitted bytes|TxBytes|bytes|
28
-
|Replica count|Number of active replicas|Replicas | n/a |
| Basic |Resiliency Request Timeouts |Total requests that timed out waiting for a response |`ResiliencyRequestTimeouts`|n/a|
37
+
| Basic |Resiliency Requests Pending Connection Pool |Total requests pending a connection pool connection |`ResiliencyRequestsPendingConnectionPool`|n/a|
38
+
| Basic |Total Reserved Cores |Total cores reserved for the container app |`TotalCoresQuotaUsed`|n/a|
39
39
40
40
The metrics namespace is `microsoft.app/containerapps`.
41
41
42
42
> [!NOTE]
43
-
> Replica Restart Count is the aggregate restart count over the specified time range, not the number of restarts that occurred at a point in time.
43
+
> Replica restart count is the aggregate restart count over the specified time range, not the number of restarts that occurred at a point in time.
44
+
45
+
More runtime specific metrics are available, [Java metrics](./java-metrics.md).
44
46
45
47
## Metrics snapshots
46
48
@@ -61,9 +63,14 @@ The Azure Monitor metrics explorer lets you create charts from metric data to he
61
63
62
64
### Add filters
63
65
64
-
Optionally, you can create filters to limit the data shown based on revisions and replicas. To create a filter:
66
+
Optionally, you can create filters to limit the data shown based on revisions and replicas.
67
+
68
+
To create a filter:
69
+
65
70
1. Select **Add filter**.
71
+
66
72
1. Select a revision or replica from the **Property** list.
73
+
67
74
1. Select values from the **Value** list.
68
75
:::image type="content" source="media/observability/metrics-add-filter.png" alt-text="Screenshot of the metrics explorer showing the chart filter options.":::
69
76
@@ -72,16 +79,19 @@ Optionally, you can create filters to limit the data shown based on revisions an
72
79
When your chart contains a single metric, you can choose to split the metric information by revision or replica with the exceptions:
73
80
74
81
* The *Replica count* metric can only split by revision.
75
-
* The *Requests* metric can also be split by status code and status code category.
82
+
* The *Requests* metric can also be split by status code and status code category.
76
83
77
84
To split by revision or replica:
78
85
79
-
1. Select **Apply splitting**
80
-
1. Select **Revision** or **Replica** from the **Values** drop-down list.
81
-
1.You can set the limit of the number of revisions or replicas to display in the chart. The default is 10.
82
-
1. You can set Sort order to **Ascending** or **Descending**. The default is **Descending**.
83
-
:::image type="content" source="media/observability/metrics-alert-split-by-dimension.png" alt-text="Screenshot of metrics splitting options.":::
86
+
1. Select **Apply splitting**.
87
+
88
+
1.From the **Values** drop-down list, select **Revision**or **Replica**.
89
+
90
+
1. You can set the limit of the number of revisions or replicas to display in the chart. The default is 10.
84
91
92
+
1. You can set sort order to **Ascending** or **Descending**. The default value is *Descending*.
93
+
94
+
:::image type="content" source="media/observability/metrics-alert-split-by-dimension.png" alt-text="Screenshot of metrics splitting options.":::
85
95
86
96
### Add scopes
87
97
@@ -90,4 +100,4 @@ You can add more scopes to view metrics across multiple container apps.
90
100
:::image type="content" source="media/observability/metrics-across-apps.png" alt-text="Screenshot of the metrics explorer that shows a chart with metrics for multiple container apps.":::
91
101
92
102
> [!div class="nextstepaction"]
93
-
> [Set up alerts in Azure Container Apps](alerts.md)
103
+
> [Set up alerts in Azure Container Apps](alerts.md)
0 commit comments