v.21.6Improvement
Add broken data file metrics to system.distribution_queue
Addbroken_data_files/broken_data_compressed_bytesintosystem.distribution_queue. Add metric for number of files for asynchronous insertion into Distributed tables that has been marked as broken (BrokenDistributedFilesToInsert). #23885 (Azat Khuzhin).
Why it matters
To provide visibility into the number and size of data files marked as broken during asynchronous insertion into Distributed tables, helping users monitor and troubleshoot ingestion issues.How to use it
Query thesystem.distribution_queue system table to inspect the new columns broken_data_files and broken_data_compressed_bytes. These metrics reflect the count and compressed byte size of files marked as broken, identified by the BrokenDistributedFilesToInsert metric.