Viewing Resource and Job Monitoring Data for Spark Endpoints
During routine O&M, administrators must monitor the resource usage and job status of SparkJob and SparkSQL endpoints in real time.
With visualized monitoring, O&M personnel can:
- View the real-time resource usage of endpoints.
- Get a clear, real-time overview of the number of jobs by type for the endpoint.
- Determine whether to cancel a running job based on its status.
- Analyze resource usage trends and optimize resource management to avoid waste or shortage.
- Identify resource bottlenecks or job exceptions quickly to ensure service stability.
Viewing Resource Monitoring Metrics
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Spark. In the endpoint list, click the name of the endpoint where the job is running to go to the Overview page.
- Click the Monitoring tab to view the resource usage of the endpoint.
Table 1 Resource metrics for SparkJob and SparkSQL endpoints Metric ID
Metric Name
Description
Value Range
Unit
Unit Base
Dimension
Monitoring Interval
aidatalake_endpoint_spark_used_cpu_num
Used CPUs
The number of vCPUs used on the endpoint.
≥0
vCPU
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_max_cpu_num
Total CPU Quota
The maximum number of vCPUs that can be allocated to the endpoint.
≥0
vCPU
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_cpu_rate
CPU Usage
The average CPU usage of the current endpoint.
0–100
%
N/A
workspace_id,endpoint_id,endpoint_type
1 minute
aidatalake_endpoint_spark_used_memory_num
Used Memory
The amount of memory used on the endpoint.
≥0
Byte
1024
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_max_memory_num
Total Memory Quota
The maximum amount of memory that can be allocated to the endpoint.
≥0
Byte
1024
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_memory_rate
Memory Usage
The average memory usage of the current endpoint.
0–100
%
N/A
workspace_id,endpoint_id,endpoint_type
1 minute
- Configure monitoring parameters to view the real-time status of endpoint resources and jobs. The system provides flexible configuration options, allowing you to customize the data statistics period and adjust the page refresh frequency to meet your monitoring needs across different scenarios. After setting the monitoring data statistics period, you can choose By minute, By hour, or By day in the upper right corner of the page to view the charts by a specified aggregation granularity. The charts display the average value calculated based on your selected aggregation granularity.
- If the data statistics period is the last 1 hour or 6 hours, the minimum data interval in the chart is 1 minute.
- If the data statistics period is the last 1 day or 7 days, the minimum data interval in the chart is 1 hour. In this case, you cannot view the chart by minute.
- If the data statistics period is the last 30 days, the minimum data interval in the chart is 1 day. In this case, you cannot view the chart by minute or hour.
- If you customize the data statistics period, the maximum timeframe is 30 days. If the custom range exceeds 1 day, the minimum data interval in the chart is 1 hour. If it exceeds 7 days, the minimum interval is 1 day.
Viewing Job Monitoring Metrics
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Spark. In the endpoint list, click the name of the endpoint where the job is running to go to the Overview page.
- Click the Monitoring tab to view the job running details for the endpoint.
Table 2 Job metrics for SparkJob and SparkSQL endpoints Metric ID
Metric Name
Description
Value Range
Unit
Unit Base
Dimension
Monitoring Interval
aidatalake_endpoint_spark_submitting_jobs_count
Jobs Being Submitted
The number of jobs currently being submitted to the endpoint, including maximum, minimum, and average values.
≥0
Count
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_running_jobs_count
Running Jobs
The number of jobs currently running on the endpoint, including maximum, minimum, and average values.
≥0
Count
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_completed_jobs_count
Successful Jobs
The number of successful jobs on the endpoint, including maximum, minimum, and average values.
≥0
Count
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_failed_jobs_count
Failed Jobs
The number of failed jobs on the endpoint, including maximum, minimum, and average values.
≥0
Count
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_cancelled_jobs_count
Canceled Jobs
The number of canceled jobs on the endpoint, including maximum, minimum, and average values. SparkJob endpoint: Includes only canceled jobs. SparkSQL endpoint: Includes only canceled jobs.
≥0
Count
N/A
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_max_submitting_duration_ms
Longest Job Queue Duration
The maximum queue duration of jobs on the endpoint at the specified time. SparkJob endpoint: Includes both queued and starting jobs. SparkSQL endpoint: Includes queued jobs only.
≥0
ms
1000
workspace_id,endpoint_id
1 minute
aidatalake_endpoint_spark_max_running_duration_ms
Longest Job Execution Duration
The maximum execution duration of jobs on the endpoint at the specified time. SparkJob endpoint: Includes only running jobs. SparkSQL endpoint: Includes only running jobs.
≥0
ms
1000
workspace_id,endpoint_id
1 minute
- Configure monitoring parameters to view the real-time status of endpoint resources and jobs. The system provides flexible configuration options, allowing you to customize the data statistics period and adjust the page refresh frequency to meet your monitoring needs across different scenarios. After setting the monitoring data statistics period, you can choose By minute, By hour, or By day in the upper right corner of the page to view the charts by a specified aggregation granularity. The charts display the average value calculated based on your selected aggregation granularity.
- If the data statistics period is the last 1 hour or 6 hours, the minimum data interval in the chart is 1 minute.
- If the data statistics period is the last 1 day or 7 days, the minimum data interval in the chart is 1 hour. In this case, you cannot view the chart by minute.
- If the data statistics period is the last 30 days, the minimum data interval in the chart is 1 day. In this case, you cannot view the chart by minute or hour.
- If you customize the data statistics period, the maximum timeframe is 30 days. If the custom range exceeds 1 day, the minimum data interval in the chart is 1 hour. If it exceeds 7 days, the minimum interval is 1 day.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot