Skip to content

Commit a983e87

Browse files
committed
review cx
1 parent 76ddbb9 commit a983e87

File tree

2 files changed

+68
-74
lines changed

2 files changed

+68
-74
lines changed

articles/app-service/monitor-app-service-reference.md

Lines changed: 5 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Azure App Service monitoring data reference
33
description: This article contains important reference material you need when you monitor Azure App Service.
4-
ms.date: 02/29/2024
4+
ms.date: 03/04/2024
55
ms.custom: horz-monitor
66
ms.topic: reference
77
author: msangapu-msft
@@ -33,78 +33,10 @@ The following tables list the automatically collected platform metrics for App S
3333
| App Service Environment Worker Pools | [Microsoft.Web/hostingEnvironments/workerPools](/azure/azure-monitor/reference/supported-metrics/microsoft-web-hostingenvironments-workerpools-metrics)
3434

3535
>[!NOTE]
36-
>Azure App Service, Functions, and Logic Apps share the Microsoft.Web/sites namespace dating back to when they were a single service. Refer to the following list or the **Metric** column in the overall linked table to see which metrics apply to which services. The **Metrics** interface in the Azure portal for each service shows only the metrics that apply to that service.
37-
38-
For web apps, the available metrics in Microsoft.Web/sites are:
39-
40-
- Response Time
41-
- Average Response Time (deprecated)
42-
- Average memory working set
43-
- Connections
44-
- CPU Time
45-
- Current Assemblies
46-
- Data In
47-
- Data Out
48-
- File System Usage
49-
- Gen 0 Garbage Collections
50-
- Gen 1 Garbage Collections
51-
- Gen 2 Garbage Collections
52-
- Handle Count
53-
- Health Check Status
54-
- Http 2xx
55-
- Http 3xx
56-
- Http 401
57-
- Http 403
58-
- Http 404
59-
- Http 406
60-
- Http 4xx
61-
- Http Server Errors
62-
- IO Other Bytes Per Second
63-
- IO Other Operations Per Second
64-
- IO Read Bytes Per Second
65-
- IO Read Operations Per Second
66-
- IO Write Bytes Per Second
67-
- IO Write Operations Per Second
68-
- Memory working set
69-
- Private Bytes
70-
- Requests
71-
- Requests In Application Queue
72-
- Thread Count
73-
- Total App Domains
74-
- Total App Domains Unloaded
75-
76-
For an App Service plan, the metrics in Microsoft.Web/serverfarms are:
77-
78-
- Data In
79-
- Data Out
80-
- CPU Percentage
81-
- Disk Queue Length
82-
- Http Queue Length
83-
- Memory Percentage
84-
- Socket Count for Inbound Requests
85-
- Socket Count for Loopback Connections
86-
- Socket Count of Outbound Requests
87-
- Established Socket Count for Outbound Requests
88-
- Time Wait Socket Count for Outbound Requests
89-
- TCP Close Wait
90-
- TCP Closing
91-
- TCP Established
92-
- TCP Fin Wait 1
93-
- TCP Fin Wait 2
94-
- TCP Last Ack
95-
- TCP Syn Received
96-
- TCP Syn Sent
97-
- TCP Time Wait
98-
99-
> [!NOTE]
100-
> App Service plan metrics are available only for plans in *Basic*, *Standard*, and *Premium* tiers.
101-
102-
Two metrics reflect CPU usage:
103-
104-
- CPU Time
105-
- CPU percentage
106-
107-
These metrics are useful for apps hosted in Basic, Standard, and Premium plans, because they can be scaled out. CPU percentage is a good indication of the overall usage across all instances.
36+
>Azure App Service, Functions, and Logic Apps share the Microsoft.Web/sites namespace dating back to when they were a single service. Refer to the **Metric** column in the [Microsoft.Web/sites](/azure/azure-monitor/reference/supported-metrics/microsoft-web-sites-metrics) table to see which metrics apply to which services. The **Metrics** interface in the Azure portal for each service shows only the metrics that apply to that service.
37+
38+
>[!NOTE]
39+
>App Service Plan metrics are available only for plans in *Basic*, *Standard*, and *Premium* tiers.
10840
10941
[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
11042
[!INCLUDE [horz-monitor-ref-metrics-dimensions](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions.md)]

articles/app-service/web-sites-monitor.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,69 @@ You can increase or remove quotas from your app by upgrading your App Service pl
6464
6565
Metrics provide information about the app or the App Service plan's behavior.
6666

67-
For a list of the metrics that apply to apps and App Service plans, see [Supported metrics for Microsoft.Web](monitor-app-service-reference.md#supported-metrics-for-microsoftweb).
67+
For an app, the available metrics are:
68+
69+
| Metric | Description |
70+
| --- | --- |
71+
| **Response Time** | The time taken for the app to serve requests, in seconds. |
72+
| **Average Response Time (deprecated)** | The average time taken for the app to serve requests, in seconds. |
73+
| **Average memory working set** | The average amount of memory used by the app, in megabytes (MiB). |
74+
| **Connections** | The number of bound sockets existing in the sandbox (w3wp.exe and its child processes). A bound socket is created by calling bind()/connect() APIs and remains until said socket is closed with CloseHandle()/closesocket(). |
75+
| **CPU Time** | The amount of CPU consumed by the app, in seconds. For more information about this metric, see [CPU time vs CPU percentage](#cpu-time-vs-cpu-percentage). |
76+
| **Current Assemblies** | The current number of Assemblies loaded across all AppDomains in this application. |
77+
| **Data In** | The amount of incoming bandwidth consumed by the app, in MiB. |
78+
| **Data Out** | The amount of outgoing bandwidth consumed by the app, in MiB. |
79+
| **File System Usage** | The amount of usage in bytes by storage share. |
80+
| **Gen 0 Garbage Collections** | The number of times the generation 0 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.|
81+
| **Gen 1 Garbage Collections** | The number of times the generation 1 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.|
82+
| **Gen 2 Garbage Collections** | The number of times the generation 2 objects are garbage collected since the start of the app process.|
83+
| **Handle Count** | The total number of handles currently open by the app process.|
84+
| **Health Check Status** | The average health status across the application's instances in the App Service Plan.|
85+
| **Http 2xx** | The count of requests resulting in an HTTP status code ≥ 200 but < 300. |
86+
| **Http 3xx** | The count of requests resulting in an HTTP status code ≥ 300 but < 400. |
87+
| **Http 401** | The count of requests resulting in HTTP 401 status code. |
88+
| **Http 403** | The count of requests resulting in HTTP 403 status code. |
89+
| **Http 404** | The count of requests resulting in HTTP 404 status code. |
90+
| **Http 406** | The count of requests resulting in HTTP 406 status code. |
91+
| **Http 4xx** | The count of requests resulting in an HTTP status code ≥ 400 but < 500. |
92+
| **Http Server Errors** | The count of requests resulting in an HTTP status code ≥ 500 but < 600. |
93+
| **IO Other Bytes Per Second** | The rate at which the app process is issuing bytes to I/O operations that don't involve data, such as control operations.|
94+
| **IO Other Operations Per Second** | The rate at which the app process is issuing I/O operations that aren't read or write operations.|
95+
| **IO Read Bytes Per Second** | The rate at which the app process is reading bytes from I/O operations.|
96+
| **IO Read Operations Per Second** | The rate at which the app process is issuing read I/O operations.|
97+
| **IO Write Bytes Per Second** | The rate at which the app process is writing bytes to I/O operations.|
98+
| **IO Write Operations Per Second** | The rate at which the app process is issuing write I/O operations.|
99+
| **Memory working set** | The current amount of memory used by the app, in MiB. |
100+
| **Private Bytes** | Private Bytes is the current size, in bytes, of memory that the app process has allocated that can't be shared with other processes.|
101+
| **Requests** | The total number of requests regardless of their resulting HTTP status code. |
102+
| **Requests In Application Queue** | The number of requests in the application request queue.|
103+
| **Thread Count** | The number of threads currently active in the app process.|
104+
| **Total App Domains** | The current number of AppDomains loaded in this application.|
105+
| **Total App Domains Unloaded** | The total number of AppDomains unloaded since the start of the application.|
106+
107+
108+
For an App Service plan, the available metrics are:
109+
110+
> [!NOTE]
111+
> App Service plan metrics are available only for plans in *Basic*, *Standard*, and *Premium* tiers.
112+
>
113+
| Metric | Description |
114+
| --- | --- |
115+
| **CPU Percentage** | The average CPU used across all instances of the plan. |
116+
| **Memory Percentage** | The average memory used across all instances of the plan. |
117+
| **Data In** | The average incoming bandwidth used across all instances of the plan. |
118+
| **Data Out** | The average outgoing bandwidth used across all instances of the plan. |
119+
| **Disk Queue Length** | The average number of both read and write requests that were queued on storage. A high disk queue length is an indication of an app that might be slowing down because of excessive disk I/O. |
120+
| **Http Queue Length** | The average number of HTTP requests that had to sit on the queue before being fulfilled. A high or increasing HTTP Queue length is a symptom of a plan under heavy load. |
121+
122+
### CPU time vs CPU percentage
123+
<!-- To do: Fix Anchor (#CPU-time-vs.-CPU-percentage) -->
124+
125+
There are two metrics that reflect CPU usage:
126+
127+
**CPU Time**: Useful for apps hosted in Free or Shared plans, because one of their quotas is defined in CPU minutes used by the app.
128+
129+
**CPU percentage**: Useful for apps hosted in Basic, Standard, and Premium plans, because they can be scaled out. CPU percentage is a good indication of the overall usage across all instances.
68130

69131
## Metrics granularity and retention policy
70132
Metrics for an app and app service plan are logged and aggregated by the service and [retained according to these rules](../azure-monitor/essentials/data-platform-metrics.md#retention-of-metrics).

0 commit comments

Comments
 (0)