Skip to content

Conversation

@ringerc
Copy link

@ringerc ringerc commented Jun 3, 2025

sysfs: trim spaces in device hidden check

(cherry picked from commit 96c346e)

Backports google#3522 from cadvisor v0.51.0.

This is needed to fix container_fs_ metrics on systems with multipath devices. Without it, errors like:

Failed to get disk map: open /sys/block/nvme0c0n1/dev

will be logged, and cadvisor will emit nonsensical metrics with the label device="" for filesystem I/O.

See google#3693 for full explanation.

sysfs: trim spaces in device hidden check

(cherry picked from commit 96c346e)

Backports google#3522 from
cadvisor v0.51.0.

This is needed to fix container_fs_ metrics on systems with multipath
devices. Without it, errors like:

    Failed to get disk map: open /sys/block/nvme0c0n1/dev

will be logged, and cadvisor will emit nonsensical metrics with
the label device="" for filesystem I/O.

See google#3693 for full explanation.

Signed-off-by: Craig Ringer <[email protected]>
@ringerc ringerc force-pushed the v0.49.0-openshift-4.17.x branch from 9a46813 to cb2c0c7 Compare June 3, 2025 22:55
@haircommander
Copy link
Member

LGTM, @harche PTAL

@harche harche merged commit c7c899f into openshift:openshift-4.17-cadvisor-v0.49.0 Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants