v.20.5New Feature

Add jemalloc statistics to system.asynchronous_metrics

Add more jemalloc statistics to system.asynchronous_metrics, and ensure that we see up-to-date values for them. #11748 (Alexander Kuzmenkov).
Added additional jemalloc memory allocator statistics to the system.asynchronous_metrics table and improved the accuracy of these metrics by ensuring they reflect up-to-date values.

Why it matters

This feature enhances monitoring capabilities by providing more detailed and current jemalloc allocator metrics. It helps users better understand memory usage patterns and diagnose memory-related issues in ClickHouse more effectively.

How to use it

Users can query the system.asynchronous_metrics table to access the expanded set of jemalloc statistics. No special configuration is required beyond having the appropriate permissions to read from the system table.