v.21.8Improvement

Update NetworkReceiveElapsedMicroseconds Metric to Include Client Data Wait Time

Make NetworkReceiveElapsedMicroseconds metric to correctly include the time spent waiting for data from the client to INSERT. Close #9958. #25602 (alexey-milovidov).
The NetworkReceiveElapsedMicroseconds metric now accurately measures the total time spent waiting for data from the client during INSERT operations.

Why it matters

Previously, the NetworkReceiveElapsedMicroseconds metric did not fully account for the time ClickHouse spent waiting for incoming data from the client during INSERT queries. This fix ensures that the metric reflects the actual network receive duration, providing users with more precise monitoring and performance insights.

How to use it

Users do not need to enable anything manually. After updating to the new version, the NetworkReceiveElapsedMicroseconds metric will automatically include the waiting time for data from clients during INSERT commands.