v.25.11Improvement

Add multiple histogram metrics

Add multiple histogram metrics for the server and the keeper to instrument the durations of the keeper request execution stages. The following metrics will be added to the server: keeper_client_queue_duration_milliseconds, keeper_client_send_duration_milliseconds, keeper_client_roundtrip_duration_milliseconds. The following metrics will be added to the keeper: keeper_server_preprocess_request_duration_milliseconds, keeper_server_process_request_duration_milliseconds, keeper_server_queue_duration_milliseconds, keeper_server_send_duration_milliseconds. #88158 (Miсhael Stetsyuk).
Adds multiple histogram metrics to the ClickHouse server and keeper components to instrument the durations of various keeper request execution stages.

Why it matters

This feature introduces detailed latency metrics for keeper request processing stages, enabling better monitoring and performance analysis of the keeper interactions within ClickHouse. It helps users diagnose delays and optimize keeper request handling by providing granular timing data.

How to use it

The new histogram metrics are automatically collected and exposed by the server and keeper. Users can monitor these metrics through their existing ClickHouse metrics infrastructure to gain insights into keeper request execution times.