-
Notifications
You must be signed in to change notification settings - Fork 158
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
Network interface configuration #3421
Conversation
cfa0d5f
to
38247e7
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.
You've added a new required env var without any enforcement on service startup (breaking). Please add to https://github.com/signalfx/splunk-otel-collector/blob/main/internal/settings/settings.go using the memory env vars as an example.
edit: we should be setting the default value in settings to not make it required imo***
Thanks! I was also looking for good ways to test this. I caught a few failing tests. I'll take any hint on what else we can add to test. |
The settings test suite has env var helpers to detect what's set by the collector: https://github.com/signalfx/splunk-otel-collector/blob/main/internal/settings/settings_test.go#L204. We also have a default config test that should always reflect any changes: https://github.com/signalfx/splunk-otel-collector/blob/main/tests/general/default_config_test.go. edit: missed that you did actually change the integration tests** |
We should also add the new var to the choco package as a new parameter:
|
We'll also need to add support to our deployments for the new env var when these changes are released. |
8ef36d2
to
0f36707
Compare
0fd265b
to
a88b4f3
Compare
Going to squash to one commit and make sure the diff makes sense. |
…the collector receivers will listen
f772ae1
to
12d0862
Compare
@jeffreyc-splunk please take a look when you have a moment. I am rerunning some of the ansible tests assuming that they're just flaky. |
Yeah, unfortunately virtualbox/vagrant on the github runners is flaky. May take a couple of retries to get all of those tests to pass. |
Not sure if it needs to be called out directly, but the new option in the installers will only be applicable for new installations or when the default unmodified config files are upgraded to this new version. If the customer uses a custom/modified config file, they will need to manually replace the values in their config with this env var for these changes to take effect. |
I can maybe call that out in a subsequent PR if you don't mind, with a changelog entry that calls out to customers how to take advantage of this if they have an existing install. |
Add support for configuring the network interface on which the collector receivers will listen