After deploying an EAS service, use the monitoring page to track request volume, latency, and resource usage.
View monitoring data
-
Log on to the PAI console. Select a region on the top of the page. Then, select the desired workspace and click Elastic Algorithm Service (EAS).
-
Click a service name to open its details, then switch to the Monitoring tab.
-
View monitoring dashboards and metrics.
Switch Dashboards
In the upper-left corner of the Monitoring page, click the Service drop-down list to switch dimensions.
-
Service: Service dimension. Default service monitoring dashboard name format is
Service-<service_name>, where<service_name>is the EAS service name. -
Instance: Instance-level dashboard with single-instance and multi-instance views.
-
Single Instance: Metrics for one instance at a time. Switch between instances to compare.
Select an instance from the Instance drop-down list on the right to view its monitoring metrics, such as QPS and RT.
-
Multiple Instance: Metrics for multiple instances side by side.
-
Switch Time Range
Click
in the Monitoring area to change the dashboard time range.In the time picker panel that opens, you can specify a custom start and end time under Absolute time range on the left, or select a preset range, such as Last 5 minutes to Last 7 days, from the Relative time ranges list on the right. The selected time range is marked with a check mark (✓).
ImportantMinute-level metrics are retained for up to 1 month. Second-level metrics are retained for up to 1 hour.
ImportantLLM monitoring metrics appear only when the service tag contains
"ServiceEngineType": "vllm"or"ServiceEngineType" : "sglang". -
Monitoring metrics
Service Monitoring Dashboard (Minute-Level)
This dashboard tracks the following metrics:
|
Metric |
Description |
|
|
QPS |
Requests per second, grouped by return code. Summed across instances for multi-instance services. The 1d offset shows the previous day's QPS for trend comparison. |
|
|
Response |
Total responses in the selected time range, grouped by return code. Summed across instances for multi-instance services. |
|
|
RT |
Request response time.
|
|
|
Daily Invoke |
Daily call count, grouped by return code. Summed across instances for multi-instance services. |
|
Single Instance Monitoring Dashboard (Minute-Level)
This dashboard tracks the following metrics:
|
Metric |
Description |
|
QPS |
Requests per second received by this instance. Grouped by return code. |
|
RT |
Response time of requests for this instance. |
|
Response |
Total responses received by this instance within the selected time range. Grouped by return code. |
Multiple Instance Monitoring Dashboard
Minute-level and second-level metrics:
-
Minute-Level
Metric
Description
Instance QPS
Requests per second for each instance. Grouped by return code.
Instance RT
Average response time for each instance.
Instance CPU
CPU usage for each instance, in CPU cores.
Instance Memory -- RSS
Resident physical memory size for each instance.
Instance Memory -- Cache
Cache size for each instance.
Instance GPU
GPU utilization for each instance.
Instance GPU Memory
GPU memory usage for each instance.
Instance TCP Connections
Number of TCP connections for each instance.
-
Second-Level
ImportantData granularity is 5 seconds. Only the last 1 hour of data is retained.
Metric
Description
Instance QPS Fine
Requests per second received by each instance. Grouped by return code.
Instance RT Fine
Average response time for requests received by each instance.
GPU Monitoring Dashboard
GPU metrics at service and instance levels. Service-level values are averaged across all instances.
|
Metric |
Description |
|
GPU Utilization |
GPU utilization of the service. |
|
GPU Memory |
GPU memory usage and total GPU memory of the service.
|
|
Memory Copy Utilization |
GPU memory copy utilization of the service. |
|
GPU Memory Utilization |
GPU memory utilization of the service. Calculation: Memory usage ÷ Total memory. |
|
PCIe |
PCIe (Peripheral Component Interconnect Express) rate of the service, measured by DCGM. PCIe is a high-speed serial computer expansion bus standard.
|
|
Memory Bandwidth |
GPU memory bandwidth metric of the service. |
|
SM Utilization and Occupancy |
SM (Streaming Multiprocessor) related metrics of the service. SMs are core components of a GPU, responsible for executing and scheduling parallel computing tasks.
|
|
Graphics Engine Utilization |
GPU graphics engine utilization of the service. |
|
Pipe Active Ratio |
Activity rate of the GPU compute pipelines of the service.
|
|
Tflops Usage |
Tflops (Tera floating-point operations per second) compute volume of the GPU compute pipelines of the service.
|
|
DRAM Active Ratio |
Activity rate of the GPU device memory interface sending or receiving data. |
|
SM Clock |
SM clock frequency of the service. |
|
GPU Temperature |
GPU temperature related metrics of the service.
|
|
Power Usage |
GPU power consumption of the service. |
VLLM Monitoring Dashboard
For multi-instance services, throughput metrics are summed and latency metrics are averaged across instances.
|
Metric |
Description |
|
Requests Status |
Total requests for the service.
|
|
Token Throughput |
Number of input and generated tokens for all requests of the service.
|
|
Request Completion Status |
Completion status statistics for all requests of the service.
|
|
Time To First Token |
Time to first token latency for all requests of the service (time from receiving a request to generating the first token).
|
|
Time Per Output Token |
Time per output token latency for all requests of the service (average time required for each output token after the first token is generated).
|
|
E2E Request Latency |
End-to-end latency for all requests of the service (time from receiving a request to returning all tokens).
|
|
Queue Time |
Queue waiting latency for all requests of the service (time requests wait in queue for engine processing).
|
|
Inference Time |
Inference latency for all requests of the service (time requests are processed by the engine).
|
|
Prefill Time |
Prefill stage latency for all requests of the service (time the engine processes request input tokens).
|
|
Decode Time |
Decode stage latency for all requests of the service (time the engine generates output tokens).
|
|
Input Token Length |
Number of input tokens processed by the service.
|
|
Output Token Length |
Number of output tokens generated by the service.
|
|
Request Parameters(params_n & max_tokens) |
Parameter N and parameter max_tokens for all requests of the service.
|
|
GPU KV Cache Usage |
Average GPU KV cache utilization of the service. |
|
CPU KV Cache Usage |
Average CPU KV cache utilization of the service. |
|
Prefix Cache Hit Rate |
Average prefix cache hit rate for all requests of the service.
|
|
HTTP Requests by Endpoint |
Number of requests for the service, grouped by request method, path, and response status code. |
|
HTTP Request Latency |
Average latency for different request paths of the service. |
|
Speculative Decoding Throughput |
Speculative decoding count for the service. Averaged across instances for multi-instance services.
|
|
Speculative Decoding Efficiency |
Speculative decoding performance of the service.
|
|
Token Acceptance by Position |
Number of Drafts Tokens accepted at different generation positions for the service. Averaged across instances for multi-instance services. |
SGLang Monitoring Dashboard
For multi-instance services, throughput metrics are summed and latency metrics are averaged across instances.
|
Metric |
Description |
|
Requests Num |
Total requests for the service.
|
|
Token Throughput |
Number of input and generated tokens for all requests of the service.
|
|
Time To First Token |
Time to first token latency for all requests of the service. Time to first token latency is the time from receiving a request to generating the first token.
|
|
Time Per Output Token |
Time per output token latency for all requests of the service. Time per token latency is the average time required for each subsequent output token after the first token is generated.
|
|
E2E Request Latency |
End-to-end latency for all requests of the service. End-to-end latency is the time from receiving a request to returning all tokens.
|
|
Cache Hit Rate |
Average prefix cache hit rate for all requests of the service. |
|
Used Tokens Num |
Number of KV cache tokens used by the service. Averaged across instances for multi-instance services. |
|
Token Usage |
Average KV cache token utilization of the service. Averaged across instances for multi-instance services. |
FAQ
LLM monitoring dashboard not displayed
Problem: After custom EAS deployment, the monitoring page shows only Service and GPU dashboards. LLM monitoring is missing.
Cause: The service configuration is missing the ServiceEngineType tag, which declares the inference engine type.
Only the ServiceEngineType tag affects LLM monitoring. Other Model Gallery deployment parameters have no impact.
Solution: Update the service configuration to add the ServiceEngineType tag and set its value based on the inference engine used (only vllm or sglang are supported). For example:
{
"labels": {
"ServiceEngineType": "vllm"
}
}
Q: Why do /metrics 200 frequently appear in logs?
Once the ServiceEngineType tag takes effect, the EAS backend polls the inference framework's /metrics endpoint every 10-15 seconds across all pods. This endpoint returns real-time metrics in Prometheus format for the LLM monitoring dashboard.
Q: How to check the maximum concurrency in monitoring?
EAS monitoring does not provide a direct "maximum concurrency" metric. You can determine concurrency based on the service type:
-
LLM inference services (vllm or sglang engine): Switch to the VLLM Monitoring Dashboard or SGLang Monitoring Dashboard, and check the Running metric under Requests Status or Requests Num. This metric indicates the number of requests currently running on the GPU, which represents the real-time concurrency. By changing the time range (for example, selecting Last 1 hours or Last 6 hours), you can find the peak value of the Running curve, which is the maximum concurrency within that period.
-
General services: You can estimate concurrency using the QPS (queries per second) and RT (response time) metrics from the service monitoring dashboard. Based on Little's Law:
Concurrency ≈ QPS × Average RT (seconds). For example, if QPS is 10 and average RT is 2 seconds, the concurrency is approximately 20. Apply this formula during peak periods to estimate the maximum concurrency.
Reference
-
After enabling service monitoring alerts, you will receive alert notifications when the service triggers alert rules.
-
View EAS Cloud Monitor events through the Cloud Monitor console or API operation to perform O&M, auditing, or alert settings for these events.
-
Set custom monitoring metrics for Auto Scaling based on business logic. Custom Monitoring and Scaling Metrics.