Skip to content

Commit f66809d

Browse files
Add category column and info on Java metrics
1 parent 558029f commit f66809d

File tree

1 file changed

+40
-30
lines changed

1 file changed

+40
-30
lines changed

articles/container-apps/metrics.md

Lines changed: 40 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,44 @@ services: container-apps
55
author: v-jaswel
66
ms.service: container-apps
77
ms.topic: how-to
8-
ms.date: 08/30/2022
8+
ms.date: 04/30/2024
99
ms.author: v-wellsjason
1010
---
1111

1212
# Monitor Azure Container Apps metrics
1313

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.
1515

1616
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).
1717

1818
## Available metrics
1919

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 |
29-
|Replica Restart Count|Restarts count of container app replicas| RestartCount | n/a |
30-
|Requests|Requests processed|Requests|n/a|
31-
|Reserved Cores|Number of reserved cores for container app revisions |CoresQuotaUsed|n/a|
32-
|Resiliency Connection Timeouts |Total connection timeouts |ResiliencyConnectTimeouts |n/a|
33-
|Resiliency Ejected Hosts |Number of currently ejected hosts|ResiliencyEjectedHosts |n/a|
34-
|Resiliency Ejections Aborted |Number of ejections aborted due to the max ejection % |ResiliencyEjectionsAborted |n/a|
35-
|Resiliency Request Retries |Total request retries|ResiliencyRequestRetries|n/a|
36-
|Resiliency Request Timeouts |Total requests that timed out waiting for a response |ResiliencyRequestTimeouts|n/a|
37-
|Resiliency Requests Pending Connection Pool |Total requests pending a connection pool connection |ResiliencyRequestsPendingConnectionPool |n/a|
38-
|Total Reserved Cores |Total cores reserved for the container app |TotalCoresQuotaUsed|n/a|
20+
Container Apps provides these basic metrics.
21+
22+
| Category | Title | Description | Metric ID | Unit |
23+
|--|--|--|--|--|
24+
| Basic | CPU Usage | CPU consumed by the container app, in nano cores (1,000,000,000 nanocores = 1 core) | UsageNanoCores | `nanocores` |
25+
| Basic | Memory Working Set Bytes | Container app working set memory used in bytes | `WorkingSetBytes` | bytes |
26+
| Basic | Network In Bytes | Network received bytes | `RxBytes` | bytes |
27+
| Basic | Network Out Bytes | Network transmitted bytes | `TxBytes` | bytes |
28+
| Basic | Replica count | Number of active replicas | `Replicas` | n/a |
29+
| Basic | Replica Restart Count | Restarts count of container app replicas | `RestartCount` | n/a |
30+
| Basic | Requests | Requests processed | `Requests` | n/a |
31+
| Basic | Reserved Cores | Number of reserved cores for container app revisions | `CoresQuotaUsed` | n/a |
32+
| Basic | Resiliency Connection Timeouts | Total connection timeouts | `ResiliencyConnectTimeouts` | n/a |
33+
| Basic | Resiliency Ejected Hosts | Number of currently ejected hosts | `ResiliencyEjectedHosts` | n/a |
34+
| Basic | Resiliency Ejections Aborted | Number of ejections aborted due to the max ejection % | `ResiliencyEjectionsAborted` | n/a |
35+
| Basic | Resiliency Request Retries | Total request retries | `ResiliencyRequestRetries` | n/a |
36+
| 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 |
3939

4040
The metrics namespace is `microsoft.app/containerapps`.
4141

4242
> [!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).
4446

4547
## Metrics snapshots
4648

@@ -61,9 +63,14 @@ The Azure Monitor metrics explorer lets you create charts from metric data to he
6163

6264
### Add filters
6365

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+
6570
1. Select **Add filter**.
71+
6672
1. Select a revision or replica from the **Property** list.
73+
6774
1. Select values from the **Value** list.
6875
:::image type="content" source="media/observability/metrics-add-filter.png" alt-text="Screenshot of the metrics explorer showing the chart filter options.":::
6976

@@ -72,16 +79,19 @@ Optionally, you can create filters to limit the data shown based on revisions an
7279
When your chart contains a single metric, you can choose to split the metric information by revision or replica with the exceptions:
7380

7481
* 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.
7683

7784
To split by revision or replica:
7885

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.
8491

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.":::
8595

8696
### Add scopes
8797

@@ -90,4 +100,4 @@ You can add more scopes to view metrics across multiple container apps.
90100
:::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.":::
91101

92102
> [!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

Comments
 (0)