This topic describes how to use Managed Service for Prometheus to monitor a Serverless App Engine (SAE) application.
Prerequisites
The SAE application to be monitored is running as expected.
Step 1: Integrate SAE monitoring
Search for SAE in the Integration Center: You can log on to the Cloud Monitor console. You can select Integration Center in the navigation pane on the left. You can enter SAE in the search box and click Alibaba Cloud SAE Service.

Integrate SAE monitoring: In the Alibaba Cloud SAE Service panel, follow the prompts to integrate SAE monitoring and view the supported metrics.

Metric
Description
cpu
Application CPU utilization
load
Application average load
memoryTotalMB
Total application memory
memoryUsedMB
Used application memory
netRecv
Bytes received by the application
netTran
Bytes sent by the application
netRecvPacket
Packets received by the application
netTranPacket
Packets sent by the application
netRecvDrop
Application receive packet loss
netTranDrop
Application send packet loss
netRecvError
Erroneous packets received by the application
netTranError
Erroneous packets sent by the application
diskUsed
Application disk usage
diskTotal
Total application disk size
diskIopsRead
Application disk read IOPS
diskIopsWrite
Application disk write IOPS
diskRead
Application disk read throughput
diskWrite
Application disk write throughput
tcpTotalConn
Total TCP connections of the application
tcpActiveConn
Active TCP connections of the application
tcpInactiveConn
Inactive TCP connections of the application
tcpInuse
TCP connections in use by the application
tcpTw
Application TCP Connections
tcpAlloc
Allocated TCP connections for the application
tcpOrphan
Orphaned TCP connections for the application
Step 2: View SAE monitoring data
Integration Management: Log on to the Cloud Monitor console. In the left navigation pane, click Integration Management. On the Integrated Components tab of the Integration Management page, select the target component. In the list of target environments, locate the environment by its Environment Name and click View Details in the Actions column.
View dashboard names: On the Component Management tab, in the Component Type section, click SAE, and then click Dashboards to view the names of all dashboards.
View a dashboard: Click the name of a target Dashboard to view the corresponding Grafana dashboard.
Configure data collection (Optional): In the left navigation pane of the Grafana dashboard, click Explore. On the Explore page, select a metric and its corresponding tags. For more information about available metrics, see Step 1. Then, click Run query to view the metric data.
Step 3: Configure monitoring and alerting for SAE
Add alert rules as needed. For more information about how to create Prometheus alert rules, see Create a Prometheus alert rule.