v.24.3Improvement

Add Async Metrics for Virtual Memory Mappings VMMaxMapCount and VMNumMaps

Add async metrics for virtual memory mappings: VMMaxMapCount & VMNumMaps. Closes #60662. #61354 (Tuan Pham Anh).
Added asynchronous metrics for virtual memory mappings, specifically VMMaxMapCount and VMNumMaps, to monitor virtual memory usage in ClickHouse.

Why it matters

These metrics provide enhanced visibility into the virtual memory mappings of the ClickHouse server. By tracking VMMaxMapCount and VMNumMaps, users can better understand and manage system resource usage, helping to identify potential memory mapping issues and optimize performance.

How to use it

The new metrics VMMaxMapCount and VMNumMaps are available asynchronously within the ClickHouse metrics system. Users can query these metrics using existing monitoring tools integrated with ClickHouse's metrics endpoint or system tables without additional configuration.