What is the data source for slow queries displayed in the dashboard? I want to perform some aggregate queries

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

Original topic: 请问dashboard中显示的慢查询的数据源是啥,想做些聚合查询

| username: jiangh

【TiDB Usage Environment】Production, Testing, Research
【TiDB Version】
【Encountered Problem】
【Reproduction Path】Operations performed that led to the problem
【Problem Phenomenon and Impact】

【Attachments】

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: 数据小黑 | Original post link

Please refer to: 慢查询日志 | PingCAP 文档中心

| username: DBAhank | Original post link

You can get it from this system table, and of course, the dashboard page has also integrated different dimensions of slow query types
information_schema.slow_query