$. They should be replaced according to your business environment. For example, $job_name should be replaced with the corresponding Job Name in the Prometheus configuration, and $fe_leader should be replaced with the IP address of the Leader FE.
Service Suspension Alerts
FE Service Suspension
PromSQLBE Service Suspension
PromSQLMachine Load Alerts
BE CPU Alert
PromSQL-
Use the
topcommand to check resource usage by processes. -
Use the
perfcommand to collect and analyze performance data.
Memory Alert
PromSQL- In emergencies, you can try to restart the corresponding BE service to restore the service. An emergency here refers to a situation where the BE node’s memory usage remains abnormally high, and no effective means are available to reduce memory usage.
- If other mixed-deployed services are affecting the system, you may consider terminating those services in emergencies.
Disk Alerts
Disk Load Alert
PromSQLnode_disk_io_time_seconds_total alert, first check if there are any business changes. If so, consider rolling back the changes to maintain the previous resource balance. If no changes are identified or rollback is not possible, consider whether normal business growth is driving the need for resource expansion. You can use the iotop tool to analyze disk I/O usage. iotop has a UI similar to top and includes information such as pid, user, and I/O.
You can also use the following SQL query to identify the tablets consuming significant I/O and trace them back to specific tasks and tables.
Root Path Capacity Alert
PromSQLData Disk Capacity Alert
PromSQL-
Check if there have been changes in the loaded data volume.
Monitor the
load_bytesmetric in Grafana. If there has been a significant increase in data loading volume, you may need to scale the system resources. -
Check for any DROP operations.
If data loading volume has not changed much, run
SHOW BACKENDS. If the reported disk usage does not match the actual usage, check the FE Audit Log for recent DROP DATABASE, TABLE, or PARTITION operations. Metadata for these operations remains in FE memory for one day, allowing you to restore data using the RECOVER statement within 24 hours to avoid misoperations. After recovery, the actual disk usage may exceed what is shown inSHOW BACKENDS. The retention period of deleted data in memory can be adjusted using the FE dynamic parametercatalog_trash_expire_second(default value: 86400).To persist this change, add the configuration item to the FE configuration file fe.conf. After that, deleted data will be moved to the trash directory on BE nodes ($storage_root_path/trash). By default, deleted data is kept in the trash directory for one day, which may also result in the actual disk usage exceeding what is shown inSHOW BACKENDS. The retention time of deleted data in the trash directory can be adjusted using the BE dynamic parametertrash_file_expire_time_sec(default value: 86400).
FE Metadata Disk Capacity Alert
PromSQLmeta_dir configuration in fe.conf.
Cluster Service Exception Alerts
Compaction Failure Alerts
Cumulative Compaction Failure Alert
PromSQLHigh Compaction Pressure Alert
PromSQLINSERT INTO VALUES, or DELETE operations (at a rate of 1 per second). It is recommended to set the interval between loading or DELETE tasks to more than 5 seconds and avoid submitting high concurrency DELETE tasks.
Exceeding Version Count Alert
PromSQL2889156:
DetailCmd field:

NORMAL status, and other metrics like RowCount and DataSize should remain consistent. If only one replica exceeds the version limit of 700, you can trigger a Clone task based on other replicas using the following command:
CheckPoint Failure Alert
PromSQLbegin to generate new image: image.xxxx. If found, it means the system has started generating a new image. Continue checking the logs for records like checkpoint finished save image.xxxx to confirm successful image creation. If you find Exception when generate new image file, the image generation failed. You should carefully handle the metadata based on the specific error. It is recommended to contact the support team for further analysis.
Excessive FE Thread Count Alert
PromSQLpipeline_dop. If it is not possible to adjust SQL query granularity, you can globally adjust pipeline_dop:
thrift_server_max_worker_threads (default value: 4096).
High FE JVM Usage Alert
PromSQLjmap command to analyze the situation. Since detailed monitoring information for this metric is still under development, direct insights are limited. Perform the following actions and send the results to the support team for analysis:
Service Availability Alerts
Loading Exception Alerts
Loading Failure Alert
PromSQLstatus: ABORTED to identify failed loading tasks.
Routine Load Consumption Delay Alert
PromSQL- An alert is triggered when over 300,000 entries are delayed in consumption.
- An alert is triggered when the number of pending Routine Load tasks exceeds 3.
- An alert is triggered when there are tasks in the
PAUSEDstate. - An alert is triggered when there are tasks in the
UNSTABLEstate.
-
First, check if the Routine Load task status is
RUNNING.Pay attention to theStatefield in the returned data. -
If any Routine Load task is in the
PAUSEDstate, examine theReasonOfStateChanged,ErrorLogUrls, andTrackingSQLfields. Typically, executing the SQL query inTrackingSQLcan reveal the specific error. Example:
-
If the Routine Load task status is
RUNNING, you can try to increase the task’s concurrency. The concurrency of individual Routine Load jobs is determined by the minimum value of the following four parameters:kafka_partition_num: Number of partitions in the Kafka Topic.desired_concurrent_number: The set concurrency for the task.alive_be_num: Number of live BE nodes.max_routine_load_task_concurrent_num: FE configuration parameter, with a default value of 5.
Loading Transaction Limit Alert for a Single Database
PromSQLQuery Exception Alerts
Query Latency Alert
PromSQL-
Investigate whether there are any big queries.
Check whether large queries have consumed significant machine resources during the exception, leading to other queries timing out or failing.
-
Execute
show proc '/current_queries';to view theQueryIdof big queries. If you need to quickly restore service, you can use theKILLcommand to terminate the long-running queries. - You can also restart the BE nodes with high CPU utilization to resolve the issue.
-
Execute
- Check if the machine resources are sufficient. Verify whether CPU, memory, Disk I/O, and network traffic during the exception are normal. If anomalies are detected, investigate the root cause by examining peak traffic variations and cluster resource usage. If the issue persists, consider restarting the affected node.
- Reducing business traffic and restarting the affected BE node if a sudden traffic spike caused resource overuse and query failure.
- Expanding node capacity if high resource usage is due to normal operations.
Query Failure Alert
PromSQLstarrocks_fe_query_err_rate.
For query failures caused by kernel issues, search the fe.log for the error and obtain the complete stack trace and Query Dump, and contact the support team for troubleshooting.
Query Overload Alert
PromSQLfe.audit.log are expected. If there are legitimate changes in business behavior (for example, new services going live or increased data volumes), monitor machine load and scale BE nodes as needed.
User Connection Limit Exceeded Alert
PromSQLSHOW PROCESSLIST to check if the number of current connections is as expected. You can terminate unexpected connections using the KILL command. Additionally, ensure that frontend services are not holding connections open for too long, and consider adjusting the system variable wait_timeout (Unit: Seconds) to accelerate the system’s automatic termination of idle connections.
-
For v3.1.16, v3.2.12, and v3.3.4 or later:
-
For v2.5 and earlier:
Schema Change Exception Alert
PromSQLMsg field contains any error messages:
-
Schema Change Out of Memory
If the Schema Change fails due to insufficient memory, search the be.WARNING logs for
failed to process the version,failed to process the schema change from tablet, orMemory of schema change task exceeded limitto identify log records shown in the following:The memory limit error is typically caused by exceeding the 2GB memory limit for a single Schema Change, controlled by the BE dynamic parametermemory_limitation_per_thread_for_schema_change. You can modify this parameter to resolve the issue. -
Schema Change Timeout
Except for adding columns, which is a lightweight implementation, most Schema Changes involve creating a large number of new tablets, rewriting the original data, and implementing the operation via SWAP.
You can address this by:
-
Increasing the timeout for creating tablets (Default: 10 seconds).
-
Increasing the number of threads for creating tablets (default: 3).
-
Increasing the timeout for creating tablets (Default: 10 seconds).
-
Non-Normal Tablet State
-
If a tablet is in a non-normal state, search the be.WARNING logs for
tablet is not normaland executeSHOW PROC '/statistic'to check the cluster-levelUnhealthyTabletNum.
-
Execute
SHOW PROC '/statistic/$DbId'to check the unhealthy tablet number in the specified database.
-
Execute
SHOW TABLET $tablet_idto view the table information of the corresponding tablet.
-
Execute the command returned in the
DetailCmdfield to identify the cause of the unhealthy tablets.
-
If a tablet is in a non-normal state, search the be.WARNING logs for
Materialized View Refresh Exception Alert
PromSQL-
Check the materialized views that failed to refresh.
-
Try manually refreshing the materialized view.
-
If the materialized view is in the
INACTIVEstate, try to manually activate it. -
Investigate the cause of the refresh failure.