@fraz mahmud kubectl top pod does not show % as this is what metric servers prov . . .

Subrata Biswas:
@fraz mahmud kubectl top pod does not show % as this is what metric servers provides for pods,you can see what metric server returns by querying raw metric server “kubectl get raw – /apis/metrics.k8s.io/v1beta1/namespaces/{namespcename}/pods/{nglvn}” as per the screenshot. but if you want to make advanced query and get advanced result you can get usiing Prometheus and running PromQL and then directing the output to Grafana and this is (Prometheus) free stack but there are paid products like datadog or dynatrace

fraz mahmud:
@Subrata Biswas thank you for the reply. I had a question in the CKA exam where i wanted me to compare the CPU performance of 3 pods in a namespace. In this scenario, what would you do?

Subrata Biswas:
In that case I would sort them via cpu “–sort-by=cpu” and add the result according to highest to lower order to see which pod has requested highest then the next one and then so on

fraz mahmud:
thanks