cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Query Container Memory & CPU Requests

Avles
Frequent Guest

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?

 

Avles_1-1700889202632.png

Thank you

 

 

4 REPLIES 4

radek_jasinski
DynaMight Guru
DynaMight Guru

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

Have a nice day!

Mizső
DynaMight Leader
DynaMight Leader

Hi @Avles,

Could you please check this API? Maybe the pod level would be fine for you. Evironment API V2.

Mizs_2-1700946221543.png

Result:

Mizs_1-1700946136269.png

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Avles
Frequent Guest

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

Avles
Frequent Guest

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-...

Featured Posts