Skip to content

node_filesystem_readonly does not report readonly bind mounts correctly #3484

@codec

Description

@codec

After upgrading node_exporter from 1.9.1 to 1.10.2, node_filesystem_readonly no longer correctly reports when the same device is mounted multiple times with different flags.

Example: A bind mount that is mounted with ro is now reported as writable.

/dev/sda1 / ext4 rw,relatime 0 0
/dev/sda1 /nix/store ext4 ro,nosuid,nodev,relatime 0 0

Expected behaviour

(with 1.9.1)

node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/"} 0
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/nix/store"} 1

Actual behaviour

(with 1.10.2)

node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/"} 0
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/nix/store"} 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions