-
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
Remove the need to set environment variables with hostmetricsreceiver #23861
Remove the need to set environment variables with hostmetricsreceiver #23861
Conversation
06e9c01
to
3642870
Compare
3642870
to
c901933
Compare
d789620
to
1eaddfc
Compare
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.
Can we wait to merge this until shirou/gopsutil/pull/1439 is in a tagged release of gopsutil?
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.
Hi @atoulme, I'm not sure I fully get the context, could you explain it briefly? ^^
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.
Looks like 3.23.6 includes your change @atoulme 🚀 , can you update this PR?
1eaddfc
to
c9f5f2f
Compare
The hostmetricsreceiver uses gopsutil which traditionally has allowed configuration via environment variables. This messes with our internals because those env vars are not thread safe and we use those in multiple places. For example, here. In general, the program should never set environment variables. |
c9f5f2f
to
3708926
Compare
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.
c3e6f6b
to
7174dfd
Compare
ddf081c
to
b1d4050
Compare
@dmitryax as codeowner, please take a look when you get a chance, thanks! |
5f9c61b
to
6b662cb
Compare
6b662cb
to
fc40625
Compare
b199531
to
4727566
Compare
cd5a888
to
b7361c8
Compare
b7361c8
to
92a9f7a
Compare
Description:
Remove the need to set environment variables with hostmetricsreceiver
Testing:
Tests unchanged.
Documentation:
No docs touched.