No load process metric data in TiDM monitoring

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDM 监控中没有 load process的指标数据

| username: TiDBer_BMMBGarU

[TiDB Usage Environment] Production Environment / Testing
[TiDB Version] 7.5.1
[Reproduction Path] Deploy TiDM 7.5.1, import data (about 30GB) from MySQL 5.6 to TiDB 7.5.1 cluster. During the import process, check the monitoring Grafana page [DM-Monitor-Professional] → [dump and load] panel. The dump process has monitoring charts displayed, but there is no monitoring data in the load unit. Checking the corresponding Prometheus monitoring metrics page, the relevant ‘dm_loader_progress’ metric is not found.

[Encountered Problem: Phenomenon and Impact] The corresponding Prometheus monitoring metrics page for TiDM Worker / Master does not have the relevant ‘dm_loader_progress’ metric, resulting in Grafana not displaying the progress of the load process.

[Resource Configuration]

[Attachments: Screenshots / Logs / Monitoring]

| username: xfworld | Original post link

Is the DM component deployed? Upload the status of the DM service for us to take a look.

| username: TiDBer_QYr0vohO | Original post link

How about checking with tiup cluster display?

| username: TiDBer_BMMBGarU | Original post link

The image you provided is not visible. Please provide the text you need translated.

| username: TiDBer_BMMBGarU | Original post link

The image is not visible. Please provide the text you need translated.

| username: Jasper | Original post link

Try changing the formula to the following:

lightning_chunks{job_id=~“$job_id”,task=~“$task”,source_id=~“$source”,state=“finished”} / ignoring(state) lightning_chunks{job_id=~“$job_id”,task=~“$task”,source_id=~“$source”,state=“estimated”}

| username: TiDBer_BMMBGarU | Original post link

Sure, thank you. You need to use the lightning_chunks metric, the dm_loader_process metric in the official documentation is incorrect.

| username: jiayou64 | Original post link

Learned :call_me_hand: