v.20.7Improvement

Added SelectedRows and SelectedBytes to system.events and other components

Added SelectedRows and SelectedBytes to system.events, along with system.metrics, processes, query_log, etc. #12638 (ianton-ru).
Added SelectedRows and SelectedBytes metrics to system.events, complementing the existing metrics in system tables like system.metrics, processes, and query_log.

Why it matters

This feature enhances monitoring capabilities by providing more detailed insight into the number of rows and bytes selected during query execution. It helps users better analyze resource consumption and query performance.

How to use it

Users can query the system.events table to access the new SelectedRows and SelectedBytes metrics just as they would with other event metrics, enabling easier tracking and diagnostics of query operations.