open-telemetry / opentelemetry-network

eBPF Collector
https://opentelemetry.io
Apache License 2.0
297 stars 47 forks source link

Fedora not supported by header install script #261

Open tsloughter opened 7 months ago

tsloughter commented 7 months ago

Is your feature request related to a problem? Please describe.

Sort of. Attempting to try out the kernel collector resulted in a failure because I'm running on Fedora and that isn't supported by https://github.com/open-telemetry/opentelemetry-network/blob/main/collector/kernel/kernel_headers.sh

Describe the solution you'd like

Support for fedora in https://github.com/open-telemetry/opentelemetry-network/blob/main/collector/kernel/kernel_headers.sh. I think this can be done fairly easily since I see it supports dnf based distros already, so I can plan on doing a PR.

Describe alternatives you've considered

Manually installing the kernel headers on the node and configuring the container to use those.

Additional context

Issue is also that I was working off the helm chart (https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-ebpf). The docs in https://github.com/open-telemetry/opentelemetry-network/blob/main/docs/kernel-collector.md are clear but I didn't see anything in the chart docs so had asked in Slack.