How to extract the CPU and Memory usage of the Google Cloud Kubernetes Pod when the pod is finished running

4/2/2021

I notice that when the job for a certain pod is finished running, and when I access this Kubernestes Engine > Workloads page. I don't see data on CPU, Memory usage anymore. Could you please let me know if there is a way to have this information for the succeeded jobs? The tester team needs to monitor the CPU and Memory for the pobs. Thank you very much in advance.

CPUMEM_POD

-- shuti
google-cloud-platform
google-kubernetes-engine
kubernetes
kubernetes-pod

1 Answer

6/19/2021

You can use Monitoring > Metrics Explorer, here: https://console.cloud.google.com/monitoring/metrics-explorer .

A job is going to create a pod so you can explore metrics like container/cpu/limit_utilization for example.

Here you can find a detailled list of the metrics exposed by GKE: https://cloud.google.com/monitoring/api/metrics_kubernetes

-- ale_tri
Source: StackOverflow