ClickHouse now uses cgroup-specific metrics to account for CPU usage instead of relying on system-wide metrics.
Why it matters
This feature improves the accuracy of CPU usage reporting by considering the CPU usage within specific control groups (cgroups). It is particularly valuable in containerized environments and multi-tenant systems where resource isolation is critical, allowing users to monitor resource consumption more precisely.How to use it
To enable this feature, ensure that ClickHouse is running in an environment where cgroups are configured and enabled. ClickHouse will automatically detect and use cgroup-specific metrics for CPU accounting without additional configuration.