-
Notifications
You must be signed in to change notification settings - Fork 151
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
Otel on Windows nodes - Host field with wrong value #685
Comments
By default, we use the resourcedetectionprocessor with the system detector to determine the host name. splunk-otel-collector-chart/helm-charts/splunk-otel-collector/templates/config/_common.tpl Line 84 in cc8b2f9
By default the system detector is set to use the
Would you please try to customize the chart and add this additional source? |
So the additional context here was that the Windows Node was actually on VMware, managed by the openshift cluster. No resource detection settings worked for it. The ultimate workaround we used here was to update
And this resulted in populating |
Additionally, we will work on open-telemetry/opentelemetry-collector-contrib#21482 which will allow to choose what detectors will be used for setting up what attributes. So then we'll be able to use env only for host.name and not to loose other attributes. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it. |
This issue was fixed by @omrozowicz-splunk upstream. Thanks! |
Otel collecting logs on Windows 2022 nodes.
For the host field, the customer is getting its pod name instead of the actual Windows Hostname.
The same behavior is not observed on Linux-based nodes.
The text was updated successfully, but these errors were encountered: