Skip to content
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

Add flag to ignore certain filesystem types #217

Closed

Conversation

dominikschulz
Copy link
Contributor

This PR introduces a flag to ignore certain filesystem types. In our setup there are a lot of useless timeseries exported which all share a few filesystem types. This would add a way to ignore all those and save some precious space.

Please let me know if you have any objections in general against this kind of feature.

@@ -26,6 +26,7 @@ import (

const (
defIgnoredMountPoints = "^/(sys|proc|dev)($|/)"
defIgnoredFsTypes = "^(sys|proc)fs$"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machine there's also at least devpts, pstore, binfmt_misc and cgroup

@grobie
Copy link
Member

grobie commented May 5, 2016

@dominikschulz ping. Would love to integrate this. Do you have time to address the comments?

@roman-vynar
Copy link
Contributor

roman-vynar commented May 5, 2016

This would be really helpful.

I am using an exclusion of the following meaningless FS types when graphing disk space rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs. Would be great to eliminate those on the exporter level.

@brian-brazil
Copy link
Contributor

It's not safe to ignore tmpfs by default. We can only ignore things for which iops and filling up are meaningless concepts.

mrwacky42 pushed a commit to mrwacky42/node_exporter that referenced this pull request May 13, 2016
juliusv added a commit that referenced this pull request Jun 6, 2016
Add flag to ignore certain filesystem types (Copy of #217)
@mrwacky42
Copy link
Contributor

Now that #241 is merged, this can be closed, no ?

@SuperQ
Copy link
Member

SuperQ commented Jun 6, 2016

Seems like it to me, @juliusv?

@juliusv
Copy link
Member

juliusv commented Jun 6, 2016

Seems like it, yeah.

@juliusv juliusv closed this Jun 6, 2016
@SuperQ SuperQ mentioned this pull request Nov 6, 2016
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.

7 participants