Skip to content

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Mar 31, 2015

The cgo dependency in the "procfs" package is being removed in:

prometheus/procfs#4

So now it should be fine to always import the "procfs" package and have
it determine dynamically at runtime whether the proc filesystem is
actually there.

This fixes a problem for users which were vendoring client_golang on
MacOS X, but building the result on Linux (the procfs package was
missing in the vendored packages).

The cgo dependency in the "procfs" package is being removed in:

  prometheus/procfs#4

So now it should be fine to always import the "procfs" package and have
it determine dynamically at runtime whether the proc filesystem is
actually there.

This fixes a problem for users which were vendoring client_golang on
MacOS X, but building the result on Linux (the procfs package was
missing in the vendored packages).
@juliusv
Copy link
Member Author

juliusv commented Mar 31, 2015

@brian-brazil
Copy link
Contributor

Should we merge the two process_collector files now?

@juliusv
Copy link
Member Author

juliusv commented Mar 31, 2015

@brian-brazil I don't feel strongly. I added a second commit to merge the files, let's see how you like it :)

@grobie
Copy link
Member

grobie commented Mar 31, 2015

👍

2 similar comments
@beorn7
Copy link
Member

beorn7 commented Mar 31, 2015

👍

@brian-brazil
Copy link
Contributor

👍

juliusv added a commit that referenced this pull request Mar 31, 2015
@juliusv juliusv merged commit 8ba7a93 into master Mar 31, 2015
@juliusv juliusv deleted the always-build-proc-collector branch March 31, 2015 17:04
Copy link
Member

Choose a reason for hiding this comment

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

This indirection isn't really necessary anymore. You can replace the if processCollectSupported with the condition above.

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.

4 participants