Supported metrics for Microsoft.Web/sites/slots

The following table lists the metrics available for the Microsoft.Web/sites/slots resource type.

Table headings

Metric - The metric display name as it appears in the Azure portal.
Name in Rest API - Metric name as referred to in the REST API.
Unit - Unit of measure.
Aggregation - The default aggregation type. Valid values: Average, Minimum, Maximum, Total, Count.
Dimensions - Dimensions available for the metric.
Time Grains - Intervals at which the metric is sampled. For example, PT1M indicates that the metric is sampled every minute, PT30M every 30 minutes, PT1H every hour, and so on.
DS Export- Whether the metric is exportable to Azure Monitor Logs via Diagnostic Settings.

For information on exporting metrics, see Create diagnostic settings in Azure Monitor.

For information on metric retention, see Azure Monitor Metrics overview.

For a list of supported logs, see Supported log categories - Microsoft.Web/sites/slots

Metric Name in REST API Unit Aggregation Dimensions Time Grains DS Export
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().
AppConnections Count Average, Count, Maximum, Minimum Instance PT1M Yes
Average memory working set

The average amount of memory used by the app, in megabytes (MiB).
AverageMemoryWorkingSet Bytes Average Instance PT1M Yes
Average Response Time (deprecated)

The average time taken for the app to serve requests, in seconds.
AverageResponseTime Seconds Average Instance PT1M Yes
Data In

The amount of incoming bandwidth consumed by the app, in MiB.
BytesReceived Bytes Total (Sum) Instance PT1M Yes
Data Out

The amount of outgoing bandwidth consumed by the app, in MiB.
BytesSent Bytes Total (Sum) Instance PT1M Yes
CPU Time

The amount of CPU consumed by the app, in seconds. For more information about this metric. Please see https://aka.ms/website-monitor-cpu-time-vs-cpu-percentage (CPU time vs CPU percentage).
CpuTime Seconds Count, Total (Sum), Minimum, Maximum Instance PT1M Yes
Current Assemblies

The current number of Assemblies loaded across all AppDomains in this application.
CurrentAssemblies Count Average Instance PT1M Yes
File System Usage

Percentage of filesystem quota consumed by the app.
FileSystemUsage Bytes Average <none> PT6H, PT12H, P1D Yes
Function Execution Count

Function Execution Count
FunctionExecutionCount Count Total (Sum) Instance PT1M Yes
Function Execution Units

Function Execution Units
FunctionExecutionUnits Count Total (Sum) Instance PT1M Yes
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.
Gen0Collections Count Total (Sum) Instance PT1M Yes
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.
Gen1Collections Count Total (Sum) Instance PT1M Yes
Gen 2 Garbage Collections

The number of times the generation 2 objects are garbage collected since the start of the app process.
Gen2Collections Count Total (Sum) Instance PT1M Yes
Handle Count

The total number of handles currently open by the app process.
Handles Count Average Instance PT1M Yes
Health check status

Health check status
HealthCheckStatus Count Average Instance PT5M, PT1H, P1D Yes
Http 101

The count of requests resulting in an HTTP status code 101.
Http101 Count Total (Sum) Instance PT1M Yes
Http 2xx

The count of requests resulting in an HTTP status code >= 200 but < 300.
Http2xx Count Total (Sum) Instance PT1M Yes
Http 3xx

The count of requests resulting in an HTTP status code >= 300 but < 400.
Http3xx Count Total (Sum) Instance PT1M Yes
Http 401

The count of requests resulting in HTTP 401 status code.
Http401 Count Total (Sum) Instance PT1M Yes
Http 403

The count of requests resulting in HTTP 403 status code.
Http403 Count Total (Sum) Instance PT1M Yes
Http 404

The count of requests resulting in HTTP 404 status code.
Http404 Count Total (Sum) Instance PT1M Yes
Http 406

The count of requests resulting in HTTP 406 status code.
Http406 Count Total (Sum) Instance PT1M Yes
Http 4xx

The count of requests resulting in an HTTP status code >= 400 but < 500.
Http4xx Count Total (Sum) Instance PT1M Yes
Http Server Errors

The count of requests resulting in an HTTP status code >= 500 but < 600.
Http5xx Count Total (Sum) Instance PT1M Yes
Response Time

The time taken for the app to serve requests, in seconds.
HttpResponseTime Seconds Average Instance PT1M Yes
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.
IoOtherBytesPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
IO Other Operations Per Second

The rate at which the app process is issuing I/O operations that aren't read or write operations.
IoOtherOperationsPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
IO Read Bytes Per Second

The rate at which the app process is reading bytes from I/O operations.
IoReadBytesPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
IO Read Operations Per Second

The rate at which the app process is issuing read I/O operations.
IoReadOperationsPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
IO Write Bytes Per Second

The rate at which the app process is writing bytes to I/O operations.
IoWriteBytesPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
IO Write Operations Per Second

The rate at which the app process is issuing write I/O operations.
IoWriteOperationsPerSecond BytesPerSecond Total (Sum) Instance PT1M Yes
Memory working set

The current amount of memory used by the app, in MiB.
MemoryWorkingSet Bytes Average Instance PT1M Yes
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.
PrivateBytes Bytes Average Instance PT1M Yes
Requests

The total number of requests regardless of their resulting HTTP status code.
Requests Count Total (Sum) Instance PT1M Yes
Requests In Application Queue

The number of requests in the application request queue.
RequestsInApplicationQueue Count Average Instance PT1M Yes
Thread Count

The number of threads currently active in the app process.
Threads Count Average Instance PT1M Yes
Total App Domains

The current number of AppDomains loaded in this application.
TotalAppDomains Count Average Instance PT1M Yes
Total App Domains Unloaded

The total number of AppDomains unloaded since the start of the application.
TotalAppDomainsUnloaded Count Average Instance PT1M Yes