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

Collect data from sidecars #29623

Closed
tzneal opened this issue Dec 2, 2023 · 5 comments
Closed

Collect data from sidecars #29623

tzneal opened this issue Dec 2, 2023 · 5 comments

Comments

@tzneal
Copy link

tzneal commented Dec 2, 2023

Component(s)

receiver/k8scluster

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

The Sidecars feature is enabled by default in Kubernetes 1.29 (https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/). This receiver (and maybe more) should be updated to support them.

Describe the solution you'd like

This code only reports metrics from from containers in the pod. Sidecars are an init container with a restart policy of Always and run for the lifetime of the pod, so they should probably be reported here as well.

Describe alternatives you've considered

No response

Additional context

No response

@tzneal tzneal added enhancement New feature or request needs triage New item requiring triage labels Dec 2, 2023
Copy link
Contributor

github-actions bot commented Dec 2, 2023

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@bryan-aguilar
Copy link
Contributor

bryan-aguilar commented Dec 2, 2023

I believe this could affect any component which collects pod request metrics. Such as https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awscontainerinsightreceiver

I believe this is one of the important bits from the linked blog post on sidecar containers.

The resource usage calculation changes for the pod as restartable init container resources are now added to the sum of the resource requests by the main containers

We can also see that the k8s API changed the way in which Pod Requests are calculated due to sidecar containers.

https://github.com/kubernetes/kubernetes/blob/55f2bc10435160619d1ece8de49a1c0f8fcdf276/pkg/api/v1/resource/helpers.go#L88-L95

Copy link
Contributor

github-actions bot commented Dec 2, 2023

Pinging code owners for receiver/awscontainerinsight: @Aneurysm9 @pxaws. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

github-actions bot commented Feb 5, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. 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.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Feb 5, 2024
Copy link
Contributor

github-actions bot commented Apr 5, 2024

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants