Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: dashboard/#/statement 这个sql总耗时 自己用sql怎么写

【TiDB Usage Environment】Production Environment
【TiDB Version】
6.5
【Reproduction Path】
dashboard/#/statement How to write this SQL for total elapsed time
Want to set up automatic alerts for SQL statements with a total elapsed time greater than 10 minutes
【Encountered Issues: Problem Phenomenon and Impact】
【Resource Configuration】
【Attachments: Screenshots/Logs/Monitoring】