Skip to content

Capture number of IO operations performed with cgroup v2 hierarchy #2967

@iyashu

Description

@iyashu

In cgroup v1, GetStats api captures the number of IO operations performed under IoServicedRecursive field of BlkioStats struct. But the same stat is missing with cgroup v2 implementation. As you can see here, we never populate the IoServicedRecursive field for cgroup v2. This resulted in misleading zero valued metrics in kubelet and cadvisor for cgroup v2. As per the cgroup v2 documentation, io.stat file has rios and wios fields denoting the number of read and write operations performed on a device. Let me know if I can add these stats for cgroup v2 as well?

Original cAdvisor Issue - google/cadvisor#2881

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions