Skip to content
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 libpod dependency from podmanreceiver #5430

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Remove libpod dependency from podmanreceiver #5430

merged 1 commit into from
Sep 27, 2021

Conversation

owais
Copy link
Contributor

@owais owais commented Sep 24, 2021

Description:

podmanreceiver uses the official Go podman bindings but the bindings
pull in all of the podman codebase and its dependencies. We are
essentially embedding podman into the collector. This causes a number of
problems both at compile and run time.

This commit ditches the podman library and uses net/http to consume the
podman v3 REST API instead.

This commit also adds a new config option to let users use a specific
podman API endpoint.

Fixes #5244
Fixes #5414
Fixes #5241
Fixes #5245

Testing:
Tested manually with podman machine on macOS.

Documentation:
Documented the new api_version, ssh_key and ssh_passphrase config option. No other changes are required on behalf of users. We swapped the underlying client without changing any behavior.

SSH connections were supported before but it was only possible to configure them via environment variables which was not documented. Now we support it via config and document it.
ssh_key and ssh_passphrase

@owais owais marked this pull request as ready for review September 24, 2021 15:04
@owais owais requested review from a team and dmitryax September 24, 2021 15:04
collection_interval: 10s
```

The full list of settings exposed for this receiver are documented [here](./config.go)
with detailed sample configurations [here](./testdata/config.yaml).

### Connecting over SSH
Copy link
Contributor Author

@owais owais Sep 24, 2021

Choose a reason for hiding this comment

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

This was already supported but not documented. This is not a new feature.

podmanreceiver uses the official Go podman bindings but the bindings
pull in all of the podman codebase and it's dependencies. We are
essentially embedding podman into the collector. This causes a number of
problems both at compile and run time.

This commit ditches the podman library and uses net/http to consume the
podman v3 REST API instead.

Fixes #5244
Fixes #5414
Fixes #5241
Fixes #5245
@bogdandrutu bogdandrutu merged commit be5ed4e into open-telemetry:main Sep 27, 2021
@owais owais deleted the podman-custom-client branch September 27, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants