Use query statistics to find slow and expensive queries in Aurora DSQL

Amazon Aurora DSQL now publishes per-SQL query statistics, recorded each time a statement completes, to help users find slow and expensive queries. For each normalized statement it records calls, latency, rows returned and scanned, compute and storage time, and consumption of Distributed Processing Units (DPUs), the unit Aurora DSQL bills by. The statistics are available through a new SQL metrics tab in CloudWatch Database Insights and via PromQL queries in CloudWatch Query Studio. They complement existing sampled metrics from DSQL Active Session History, which do not capture execution counts, rows read or DPU usage.

AI-written summary, checked against the cited sources. How summaries work

Image: AWS Database Blog

Read at AWS Database Blog