You can use Managed Service for Prometheus to monitor a Serverless App Engine (SAE) application and view metrics such as CPU utilization, memory usage, and network traffic.
Prerequisites
The SAE application to be monitored is running.
Step 1: Integrate SAE monitoring
-

-
Create SAE monitoring: On the Alibaba Cloud SAE Service panel, follow the prompts to complete the integration. The following table lists the supported metrics.

Metric
Description
cpu
CPU utilization of the application.
load
Average load of the application.
memoryTotalMB
Total application memory.
memoryUsedMB
Memory usage of the application.
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
Number of dropped received packets.
netTranDrop
Number of dropped sent packets.
netRecvError
Number of received packets with errors.
netTranError
Number of sent packets with errors.
diskUsed
Disk usage of the application.
diskTotal
Total application disk size.
diskIopsRead
Disk read IOPS of the application.
diskIopsWrite
Disk write IOPS of the application.
diskRead
Disk read I/O throughput of the application.
diskWrite
Disk write I/O throughput of the application.
tcpTotalConn
Total TCP connections for the application.
tcpActiveConn
Active TCP connections for the application.
tcpInactiveConn
Inactive TCP connections for the application.
tcpInuse
In-use TCP connections for the application.
tcpTw
TCP connections in the TIME_WAIT state for the application.
tcpAlloc
Allocated TCP connections for the application.
tcpOrphan
Orphaned TCP connections for the application.
Step 2: View SAE monitoring data
-
Integration ManagementIntegration ManagementIntegrated AddonsEnvironment NameView Details
-
View dashboard names: On the Component Management tab, click SAE in the Addon Type section, and then click Dashboard to view all dashboard names.
-
View a dashboard: Click the name of a Dashboard to view it.
-
(Optional) Query data: In the left-side navigation pane of the Grafana dashboard, click Explore. On the Explore page, select a metric (for a list of supported metrics, see Step 1) and its corresponding labels, and then click Run query to view the results.
Step 3: Configure alert rules
Create alert rules based on your business requirements. For more information, see Create a Prometheus alert rule.