Update cpu resource metrics to handle resize#3559
Update cpu resource metrics to handle resize#3559joaopgrassi merged 9 commits intoopen-telemetry:mainfrom
Conversation
ChrsMark
left a comment
There was a problem hiding this comment.
Thank's for digging into this @jmmcorreia! I left some comments but overall I think it goes to right direction!
@open-telemetry/semconv-k8s-approvers PTAL
Co-authored-by: Christos Markou <chrismarkou92@gmail.com>
|
I have a few hesitations with this:
Did we consider something more like |
Agreed. The utilization metrics does attempt to make that easier on users by making comparison on the collector side and providing the presentation metric to them.
That is a valid point, I think it makes sense. Probably a lot of users might not attempt to patch the container resources whilst it is running.
Before raising the PR I was stuck on deciding between the implemented approach (i.e. @dashpole But happy yo hear your thoughts on this. @ChrsMark if you have any other comments or anything to add I guess that could be helpful. |
|
The point about utilization is a good one. I think maybe switching to |
Co-authored-by: Jina Jain <jjain@splunk.com>
Co-authored-by: Jina Jain <jjain@splunk.com>
|
@open-telemetry/semconv-k8s-approvers @open-telemetry/specs-semconv-approvers PTAL |
|
@open-telemetry/specs-semconv-maintainers this one is approved by the K8s SIG. PTAL |
Related to #3558
Changes
Modifies the k8s container limit and request metrics to align with resize of CPU metrics as documented in https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/
It fixes the CPU part related to issue #3558. Memory metrics can be fixed in a follow-up PR based on the comments provided for the CPU section
For more details check issue
Merge requirement checklist #3558
[chore]