25 Nov 2023 05:15 AM
Hi,
DT can get memory and cpu usage of a container running in a kubernetes cluster. But, Is there a way to query CPU and Memory "Requests" set by the developer on the deployment when it was deployed?
Thank you
Solved! Go to Solution.
25 Nov 2023 05:23 PM
Hi @Avles
Unfortunately, I do not associate this possibility. It is probably not possible, but I could be wrong.
If it is essential then I would recommend setting up a Product Idea.
Radek
25 Nov 2023 09:04 PM
Hi @Avles,
Could you please check this API? Maybe the pod level would be fine for you. Evironment API V2.
Result:
I hope it helps.
Best regards,
Mizső
27 Nov 2023 08:51 AM
Thank you for your reply, Mizső and Radek.
My need is to identify and fix containers that are requesting more memory and CPU than actually required. Therefore, I would need data at the container level to take action. Considering that DT can show this data at the Pod level, it seems that it has the data at the container level as well. Perhaps this could be considered as a feature request.
Thanks
27 Nov 2023 09:29 AM - edited 27 Nov 2023 09:31 AM
I see there is already a feature request on the same lines for another use case, https://community.dynatrace.com/t5/Product-ideas/k8s-pod-container-usage-of-requested-resources/idi-...