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 (Copy of #217) #241

Merged
merged 3 commits into from
Jun 6, 2016

Conversation

mrwacky42
Copy link
Contributor

This addresses at least some of the comments in #217.

It now compiles on Linux. I don't have any BSD lying around to test with.

@knweiss
Copy link
Contributor

knweiss commented Jun 6, 2016

Duh, I wrote basically the same patch a couple of minutes ago before I noticed the existence of this pull request. I used the following pattern in my patch:

"^(autofs|fuse\\.vmware-vmblock|lustre|nfs|nfs4|rootfs|rpc_pipefs)$"

Maybe you want to extend the default pattern?

I would appreciate if this PR would be merged soon. Without it there are lots of useless time series on my systems esp because of autofs.

@SuperQ
Copy link
Member

SuperQ commented Jun 6, 2016

👍 I think we should merge this and improve on the default list over time. I'd rather have a shorter/safer ignore list to start with. Individuals can change the list to suit their environment.

@@ -56,7 +63,8 @@ func init() {
// Filesystems stats.
func NewFilesystemCollector() (Collector, error) {
subsystem := "filesystem"
pattern := regexp.MustCompile(*ignoredMountPoints)
mountPointPattern := regexp.MustCompile(*ignoredMountPoints)
FSTypesPattern := regexp.MustCompile(*ignoredFSTypes)
Copy link
Member

Choose a reason for hiding this comment

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

Capitalized identifiers are exported. Please make this fsTypesPattern or filesystemTypesPattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@juliusv juliusv merged commit ffd9607 into prometheus:master Jun 6, 2016
@SuperQ SuperQ mentioned this pull request Nov 6, 2016
tamcore pushed a commit to gitgrave/node_exporter that referenced this pull request Oct 22, 2024
procfs: ensure NetSockstat6 compatibility with os.IsNotExist
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.

5 participants