Edit

Supported metrics for Microsoft.AppPlatform/spring

The following table lists the metrics available for the Microsoft.AppPlatform/spring 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.
  • Advanced platform metrics - A premium, paid tier of platform metrics in Azure Monitor that provide more granular observability for Azure resources.
  • 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 -S Whether the metric is exportable to Azure Monitor Logs via Diagnostic Settings.

For information on exporting metrics, see - Metrics export using data collection rules and 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.AppPlatform/spring

Category: Common

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
App CPU Usage (Deprecated)

The recent CPU usage for the app. This metric is being deprecated. Please use "App CPU Usage" with metric id "PodCpuUsage".
AppCpuUsage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
App CPU Usage

The recent CPU usage for the app
PodCpuUsage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
App Memory Usage

The recent Memory usage for the app
PodMemoryUsage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
App Network In

Cumulative count of bytes received in the app
PodNetworkIn No Bytes Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
App Network Out

Cumulative count of bytes sent from the app
PodNetworkOut No Bytes Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes

Category: Core

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Requests

Requests processed
Requests No Count Total (Sum), Maximum, Minimum, Average containerAppName, podName, statusCodeCategory, statusCode PT1M Yes
Restart Count

Restart count of Spring App
RestartCount No Count Total (Sum), Maximum, Minimum, Average containerAppName, podName PT1M Yes
Network In Bytes

Network received bytes
RxBytes No Bytes Total (Sum), Maximum, Minimum, Average containerAppName, podName PT1M Yes
Network Out Bytes

Network transmitted bytes
TxBytes No Bytes Total (Sum), Maximum, Minimum, Average containerAppName, podName PT1M Yes
CPU Usage

CPU consumed by Spring App, in nano cores. 1,000,000,000 nano cores = 1 core
UsageNanoCores No NanoCores Total (Sum), Maximum, Minimum, Average containerAppName, podName PT1M Yes
Memory Working Set Bytes

Spring App working set memory used in bytes.
WorkingSetBytes No Bytes Total (Sum), Maximum, Minimum, Average containerAppName, podName PT1M Yes

Category: Error (Java)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
tomcat.global.error

Tomcat Global Error
tomcat.global.error No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes

Category: Gateway

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Max time of requests

The max time of requests
GatewayHttpServerRequestsMilliSecondsMax No MilliSeconds Maximum, Average Pod, httpStatusCode, outcome, httpMethod PT1M Yes
Request count

The number of requests
GatewayHttpServerRequestsSecondsCount No Count Total (Sum), Average Pod, httpStatusCode, outcome, httpMethod PT1M Yes
jvm.gc.live.data.size

Size of old generation memory pool after a full GC
GatewayJvmGcLiveDataSizeBytes No Bytes Maximum, Average Pod PT1M Yes
jvm.gc.max.data.size

Max size of old generation memory pool
GatewayJvmGcMaxDataSizeBytes No Bytes Maximum, Average Pod PT1M Yes
jvm.gc.memory.allocated

Incremented for an increase in the size of the young generation memory pool after one GC to before the next
GatewayJvmGcMemoryAllocatedBytesTotal No Bytes Maximum, Average Pod PT1M Yes
jvm.gc.memory.promoted

Count of positive increases in the size of the old generation memory pool before GC to after GC
GatewayJvmGcMemoryPromotedBytesTotal No Bytes Maximum, Average Pod PT1M Yes
jvm.gc.pause.total.count

GC Pause Count
GatewayJvmGcPauseSecondsCount No Count Total (Sum), Average Pod PT1M Yes
jvm.gc.pause.max.time

GC Pause Max Time
GatewayJvmGcPauseSecondsMax No Seconds Maximum, Average Pod PT1M Yes
jvm.gc.pause.total.time

GC Pause Total Time
GatewayJvmGcPauseSecondsSum No Seconds Total (Sum), Average Pod PT1M Yes
jvm.memory.committed

Memory assigned to JVM in bytes
GatewayJvmMemoryCommittedBytes No Bytes Maximum, Minimum, Average Pod PT1M Yes
jvm.memory.used

Memory Used in bytes
GatewayJvmMemoryUsedBytes No Bytes Maximum, Minimum, Average Pod PT1M Yes
process.cpu.usage

The recent CPU usage for the JVM process
GatewayProcessCpuUsage No Percent Maximum, Minimum, Average Pod PT1M Yes
Throttled requests count

The count of the throttled requests
GatewayRatelimitThrottledCount No Count Total (Sum), Average Pod PT1M Yes
system.cpu.usage

The recent CPU usage for the whole system
GatewaySystemCpuUsage No Percent Maximum, Minimum, Average Pod PT1M Yes

Category: Ingress

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Bytes Received

Count of bytes received by Azure Spring Apps from the clients
IngressBytesReceived No Bytes Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Throughput In (bytes/s)

Bytes received per second by Azure Spring Apps from the clients
IngressBytesReceivedRate No BytesPerSecond Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Bytes Sent

Count of bytes sent by Azure Spring Apps to the clients
IngressBytesSent No Bytes Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Throughput Out (bytes/s)

Bytes sent per second by Azure Spring Apps to the clients
IngressBytesSentRate No BytesPerSecond Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Failed Requests

Count of failed requests by Azure Spring Apps from the clients
IngressFailedRequests No Count Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Requests

Count of requests by Azure Spring Apps from the clients
IngressRequests No Count Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Response Status

HTTP response status returned by Azure Spring Apps. The response status code distribution can be further categorized to show responses in 2xx, 3xx, 4xx, and 5xx categories
IngressResponseStatus No Count Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes
Response Time

Http response time return by Azure Spring Apps
IngressResponseTime No Seconds Maximum, Minimum, Average Hostname, HttpStatus PT1M Yes

Category: Performance (.NET)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
active-timer-count

Number of timers that are currently active
active-timer-count No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
alloc-rate

Number of bytes allocated in the managed heap
alloc-rate No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
assembly-count

Number of Assemblies Loaded
assembly-count No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
cpu-usage

% time the process has utilized the CPU
cpu-usage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
exception-count

Number of Exceptions
exception-count No Count Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gc-heap-size

Total heap size reported by the GC (MB)
gc-heap-size No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-0-gc-count

Number of Gen 0 GCs
gen-0-gc-count No Count Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-0-size

Gen 0 Heap Size
gen-0-size No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-1-gc-count

Number of Gen 1 GCs
gen-1-gc-count No Count Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-1-size

Gen 1 Heap Size
gen-1-size No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-2-gc-count

Number of Gen 2 GCs
gen-2-gc-count No Count Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
gen-2-size

Gen 2 Heap Size
gen-2-size No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
loh-size

LOH Heap Size
loh-size No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
monitor-lock-contention-count

Number of times there were contention when trying to take the monitor lock
monitor-lock-contention-count No Count Total (Sum), Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
threadpool-completed-items-count

ThreadPool Completed Work Items Count
threadpool-completed-items-count No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
threadpool-queue-length

ThreadPool Work Items Queue Length
threadpool-queue-length No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
threadpool-thread-count

Number of ThreadPool Threads
threadpool-thread-count No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
time-in-gc

% time in GC since the last GC
time-in-gc No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
working-set

Amount of working set used by the process (MB)
working-set No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes

Category: Performance (Java)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
jvm.gc.live.data.size

Size of old generation memory pool after a full GC
jvm.gc.live.data.size No Bytes Maximum, Average Deployment, AppName, Pod PT1M Yes
jvm.gc.max.data.size

Max size of old generation memory pool
jvm.gc.max.data.size No Bytes Maximum, Average Deployment, AppName, Pod PT1M Yes
jvm.gc.memory.allocated

Incremented for an increase in the size of the young generation memory pool after one GC to before the next
jvm.gc.memory.allocated No Bytes Maximum, Average Deployment, AppName, Pod PT1M Yes
jvm.gc.memory.promoted

Count of positive increases in the size of the old generation memory pool before GC to after GC
jvm.gc.memory.promoted No Bytes Maximum, Average Deployment, AppName, Pod PT1M Yes
jvm.gc.pause.total.count

GC Pause Count
jvm.gc.pause.total.count No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
jvm.gc.pause.total.time

GC Pause Total Time
jvm.gc.pause.total.time No MilliSeconds Total (Sum), Average Deployment, AppName, Pod PT1M Yes
jvm.memory.committed

Memory assigned to JVM in bytes
jvm.memory.committed No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
jvm.memory.max

The maximum amount of memory in bytes that can be used for memory management
jvm.memory.max No Bytes Maximum Deployment, AppName, Pod PT1M Yes
jvm.memory.used

App Memory Used in bytes
jvm.memory.used No Bytes Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
process.cpu.usage

The recent CPU usage for the JVM process
process.cpu.usage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
system.cpu.usage

The recent CPU usage for the whole system
system.cpu.usage No Percent Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes

Category: Request (.NET)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
current-requests

Total number of requests in processing in the lifetime of the process
current-requests No Count Average Deployment, AppName, Pod PT1M Yes
failed-requests

Total number of failed requests in the lifetime of the process
failed-requests No Count Average Deployment, AppName, Pod PT1M Yes
requests-rate

Request rate
requests-per-second No Count Maximum, Minimum, Average Deployment, AppName, Pod PT1M Yes
total-requests

Total number of requests in the lifetime of the process
total-requests No Count Average Deployment, AppName, Pod PT1M Yes

Category: Request (Java)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
tomcat.global.received

Tomcat Total Received Bytes
tomcat.global.received No Bytes Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.global.request.avg.time

Tomcat Request Average Time
tomcat.global.request.avg.time No MilliSeconds Maximum, Average Deployment, AppName, Pod PT1M Yes
tomcat.global.request.max

Tomcat Request Max Time
tomcat.global.request.max No MilliSeconds Maximum Deployment, AppName, Pod PT1M Yes
tomcat.global.request.total.count

Tomcat Request Total Count
tomcat.global.request.total.count No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.global.request.total.time

Tomcat Request Total Time
tomcat.global.request.total.time No MilliSeconds Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.global.sent

Tomcat Total Sent Bytes
tomcat.global.sent No Bytes Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.threads.config.max

Tomcat Config Max Thread Count
tomcat.threads.config.max No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.threads.current

Tomcat Current Thread Count
tomcat.threads.current No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes

Category: Session (Java)

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
tomcat.sessions.active.current

Tomcat Session Active Count
tomcat.sessions.active.current No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.sessions.active.max

Tomcat Session Max Active Count
tomcat.sessions.active.max No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.sessions.alive.max

Tomcat Session Max Alive Time
tomcat.sessions.alive.max No MilliSeconds Maximum Deployment, AppName, Pod PT1M Yes
tomcat.sessions.created

Tomcat Session Created Count
tomcat.sessions.created No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.sessions.expired

Tomcat Session Expired Count
tomcat.sessions.expired No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes
tomcat.sessions.rejected

Tomcat Session Rejected Count
tomcat.sessions.rejected No Count Total (Sum), Average Deployment, AppName, Pod PT1M Yes

Next steps