Historical Queries
Going to the Historical Query Page
- Log in to the GaussDB(DWS) console.
- On the Clusters > Dedicated Clusters page, 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.
![](https://support.huaweicloud.com/eu/mgtg-dws/public_sys-resources/note_3.0-en-us.png)
- Historical queries can be viewed only in clusters of version 8.1.2 and later.
- To enable historical query monitoring, 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, including:
- Query ID
- Username
- Application name
- Database name
- Resource pool
- Submission time
- Blocking time (ms)
- Execution time (ms)
- CPU time (ms)
- CPU time skew (%)
- Statement
- Connected CN
- Client IP address
- Query status
- Completion time
- Estimated execution time (ms)
- Cancellation reason
If you do not want to see historical system queries, you can toggle on Hide System Queries.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.