forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
5.2 KiB
5.2 KiB
Historical Queries
Going to the Historical Query Page
- Log in to the GaussDB(DWS) console.
- Choose Dedicated Clusters > Clusters and locate the cluster to be monitored.
- In the Operation column of the target cluster, click Monitoring Panel.
- In the navigation pane on the left, choose Monitoring > History.
All the historical queries in the current cluster will be displayed.
- Historical queries can be viewed only in clusters of version 8.1.2 and later.
- The historical query monitoring function is disabled by default. To enable it, choose Settings > Monitoring, click Monitoring Collection, and enable Historical Query Monitoring. For details, see Monitoring Collection. Enabling history query may cause a large amount of data. Exercise caution when performing this operation.
Checking Historical Queries
In the History area, you can browse all historical query information based on the specified time period. You can click the setting button in the upper right corner of the list to select the metrics to be displayed in the list. The metrics are as follows:
Query ID, username, application name, database name, resource pools, submission time, blocking time (ms), execution time (ms), CPU time (ms), CPU time skew (%), average spill to disk (MB), query statement, access CN, client IP address, query status, completion time, estimated total execution time (ms), and cancellation reason.
Parent topic: Monitoring
