Skip to content

Conversation

@nicbaz
Copy link
Contributor

@nicbaz nicbaz commented Aug 26, 2025

fixes #3157

With the latest change implemented to use mountinfo instead of mounts there was a regression in filesystem readonly detection due to super options not taken into account: filesystems that would previously be marked a "read-only" would not anymore because that information had moved to super options instead of mount options on certain occasions.

@nicbaz
Copy link
Contributor Author

nicbaz commented Aug 26, 2025

@dswarbrick 👋 let me know if this is what you had in mind in #3157 cc @duanchao2035

@nicbaz
Copy link
Contributor Author

nicbaz commented Aug 26, 2025

I am not sure exactly why the test_docker is failing, I don't see any errors in the build logs ; happy to take pointers on this in order to fix it.

With the latest change implemented to use `mountinfo` instead of
`mounts` there was a regression in filesystem readonly detection
due to super options not taken into account: filesystems that would
previously be marked a "read-only" would not anymore because that
information had moved to super options instead of mount options on
certain occasions.

fixes #3157

Signed-off-by: nicbaz <[email protected]>
@nicbaz nicbaz requested a review from dswarbrick August 27, 2025 07:22
@dswarbrick dswarbrick merged commit 434fb7d into prometheus:master Aug 27, 2025
13 checks passed
SuperQ added a commit that referenced this pull request Oct 22, 2025
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031
* [CHANGE] filesystem: Add erofs in default excluded fs #3313
* [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386
* [FEATURE] pcidevice: Add new collector for PCIe devices #3339
* [FEATURE] AIX: Add more metrics #3338
* [FEATURE] systemd: Add Virtualization metrics #3254
* [FEATURE] swaps: Add new collector #3428
* [ENHANCEMENT] filesystem: Take super options into account for read-only #3387
* [ENHANCEMENT] perf: Add tlb_data metrics #3436
* [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288
* [BUGFIX] diskstats: Simplify condition #3290
* [BUGFIX] thermal: Sanitize darwin thermal strings #3294
* [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315
* [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335
* [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336
* [BUGFIX] systemd: Fix logging race #3364
* [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Oct 22, 2025
SuperQ added a commit that referenced this pull request Oct 23, 2025
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031
* [CHANGE] filesystem: Add erofs in default excluded fs #3313
* [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386
* [FEATURE] pcidevice: Add new collector for PCIe devices #3339
* [FEATURE] AIX: Add more metrics #3338
* [FEATURE] systemd: Add Virtualization metrics #3254
* [FEATURE] swaps: Add new collector #3428
* [ENHANCEMENT] filesystem: Take super options into account for read-only #3387
* [ENHANCEMENT] perf: Add tlb_data metrics #3436
* [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288
* [BUGFIX] diskstats: Simplify condition #3290
* [BUGFIX] thermal: Sanitize darwin thermal strings #3294
* [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315
* [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335
* [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336
* [BUGFIX] systemd: Fix logging race #3364
* [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 24, 2025
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031
* [CHANGE] filesystem: Add erofs in default excluded fs #3313
* [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386
* [FEATURE] pcidevice: Add new collector for PCIe devices #3339
* [FEATURE] AIX: Add more metrics #3338
* [FEATURE] systemd: Add Virtualization metrics #3254
* [FEATURE] swaps: Add new collector #3428
* [ENHANCEMENT] filesystem: Take super options into account for read-only #3387
* [ENHANCEMENT] perf: Add tlb_data metrics #3436
* [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288
* [BUGFIX] diskstats: Simplify condition #3290
* [BUGFIX] thermal: Sanitize darwin thermal strings #3294
* [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315
* [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335
* [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336
* [BUGFIX] systemd: Fix logging race #3364
* [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Oct 25, 2025
* filesystem: Refactor mountinfo parsing

Migrate mountinfo parsing to procfs library. This fixes incorrect
parsing introduced by PR #3387.

Fixes: #3450

Signed-off-by: Ben Kochie <[email protected]>

* Update fixtures for new infiniband procfs feature.

Signed-off-by: Ben Kochie <[email protected]>

---------

Signed-off-by: Ben Kochie <[email protected]>
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.

Metric "node_filesystem_readonly" does not include super options when calculating

2 participants