Skip to content

[kubeletstats] Revisit pod's cpu/memory limit_utilisation and request_utilisation #42485

@ChrsMark

Description

@ChrsMark

Component(s)

No response

Describe the issue you're reporting

In the latest K8s release (1.34), support for setting resource limits and requests on pod level was introduced: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pod-level-resources/.

Based on this we need to revisit on how we calculate the respective metrics today at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.134.0/receiver/kubeletstatsreceiver/internal/kubelet/metadata.go#L100-L141.

There is an effort for introducing these as Semantic Conventions at open-telemetry/semantic-conventions#1489 but it makes sense to check first from the implementation side how these can be implemented.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp:kubernetesKubernetes-related componentsnever staleIssues marked with this label will be never staled and automatically removedpriority:p1High

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions