-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore filesystems flagged as MNT_IGNORE. #2227
Conversation
Closes prometheus#2152. Signed-off-by: Lapo Luchini <[email protected]>
Probably historical reasons. Feel free to change them to use the unix package as well. But either way, this LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Signed-off-by: Lapo Luchini <[email protected]>
Done! I'd say this PR is ready (IMHO). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks
We should probably also do the same thing in filesystem_bsd.go
.
@discordianfish Would you call this a |
Yeah bugfix sounds good but change would be fine as well. Whatever you prefer! |
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218 * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227 * [BUGFIX] Sanitize UTF-8 in dmi collector #2229 Signed-off-by: Ben Kochie <[email protected]>
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218 * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227 * [BUGFIX] Sanitize UTF-8 in dmi collector #2229 Signed-off-by: Ben Kochie <[email protected]>
* Ignore filesystems flagges as MNT_IGNORE. Closes #2152. Signed-off-by: Lapo Luchini <[email protected]>
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218 * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227 * [BUGFIX] Sanitize UTF-8 in dmi collector #2229 Signed-off-by: Ben Kochie <[email protected]>
* Ignore filesystems flagges as MNT_IGNORE. Closes prometheus#2152. Signed-off-by: Lapo Luchini <[email protected]>
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218 * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227 * [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229 Signed-off-by: Ben Kochie <[email protected]>
* Ignore filesystems flagges as MNT_IGNORE. Closes prometheus#2152. Signed-off-by: Lapo Luchini <[email protected]>
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218 * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227 * [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229 Signed-off-by: Ben Kochie <[email protected]>
Closes #2152.
I noticed that
MNT_READONLY
andMNT_NOWAIT
are available underunix
dependency as well, is there a reason they were defined as local constants instead of relying on the external library?In this PR I made the shortest change possible and used the library for the new flag, but if you'd like me to use this PR to change those two as well (or, on the opposite, define also this third one as local constant), tell me.