-
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
Fix default docker_observer endpoint on Windows #34358
Fix default docker_observer endpoint on Windows #34358
Conversation
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.
Does this need a changelog?
Yes, I was waiting the PR number to create one. |
also more |
…janotti/opentelemetry-service-contrib into fix-default-discovery-crash-on-windows
…janotti/opentelemetry-service-contrib into fix-default-discovery-crash-on-windows
Unrelated windows-unit-test failures, see #34252
|
Not sure about this one https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10187830131/job/28182730990?pr=34358#step:6:21
|
Also hitting #34297 |
Similar to the above, but, a different component and symptom https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10207176086/job/28241472190?pr=34358#step:6:21
|
/label os:windows |
Just an FYI, I don't believe adding labels via comments works on PRs. (Source) |
@crobert-1 yes, you're right that didn't work here - it did work earlier on an issue 👍🏼 |
Another hit on
|
**Description:** The default endpoint for the `docker_observer` is incorrect on Windows: it should be `npipe:////./pipe/docker_engine` on Windows. Without this change the observer fails on its default configuration on Windows. Updated `extension/observer/dockerobserver` and `internal/docker` (including respective tests) to have a per OS default value for endpoint that allows the observer to work with default config on Windows. **Link to tracking Issue:** N/A **Testing:** Manual tests using the following config: ```yaml extensions: docker_observer: receivers: receiver_creator: watch_observers: [docker_observer] receivers: nginx: rule: type == "container" and name matches "nginx" and port == 80 config: endpoint: '`endpoint`/status' collection_interval: 10s exporters: debug: verbosity: detailed service: extensions: [docker_observer] pipelines: logs: receivers: [receiver_creator] processors: [] exporters: [debug] ``` **Documentation:** - [X] Updated readme files - [X] chloggen (~~pending PR number~~)
Description:
The default endpoint for the
docker_observer
is incorrect on Windows: it should benpipe:////./pipe/docker_engine
on Windows. Without this change the observer fails on its default configuration on Windows.Updated
extension/observer/dockerobserver
andinternal/docker
(including respective tests) to have a per OS default value for endpoint that allows the observer to work with default config on Windows.Link to tracking Issue: N/A
Testing:
Manual tests using the following config:
Documentation:
pending PR number)