v.25.4Improvement

Introduce two new metrics

Introduce two new metrics: TotalMergeFailures and NonAbortedMergeFailures. These metrics are needed to detect the cases where too many merges fail within a short period. #78150 (Miсhael Stetsyuk).
Introduces two new metrics in ClickHouse: TotalMergeFailures and NonAbortedMergeFailures to monitor merge failure events.

Why it matters

To enable users to detect when an excessive number of merges fail within a short timeframe, thus improving the monitoring and reliability of merge operations in ClickHouse.

How to use it

Users can monitor the TotalMergeFailures and NonAbortedMergeFailures metrics via the system metrics interfaces to track and react to merge failures promptly.