<p>I'm trying to figure out why a GKE "Workload" CPU usage is not equivalent to the sum of cpu usage of its pods.</p>

<p>Following image shows a Workload CPU usage.</p>

<p><a href="https://i.stack.imgur.com/b45rT.png" rel="nofollow noreferrer">Service Workload CPU Usage</a></p>

<p>Following images show pods CPU usage for the above Workload.</p>

<p><a href="https://i.stack.imgur.com/pPptu.png" rel="nofollow noreferrer">Pod #1 CPU Usage</a></p>

<p><a href="https://i.stack.imgur.com/UBbEG.png" rel="nofollow noreferrer">Pod #2 CPU Usage</a></p>

<p>For example, at 9:45, the Workload cpu usage was around 3.7 cores, but at the same time Pod#1 CPU usage was around 0.9 cores and Pod#2 CPU usage was around 0.9 cores too. It means, the service Workload CPU Usage should have been around 1.8 cores, but it wasn't.</p>

<p>Does anyone have an idea of this behavior?</p>

<p>Thanks.</p>

Danny Cadavid
<p>Danny,</p>

<p>The CPU chart on the Workloads page is an aggregate of CPU usage for managed pods. The values are taken from the Stackdriver Monitoring metric container/cpu/usage_time, check this <a href="https://cloud.google.com/monitoring/api/metrics_gcp#gcp-container" rel="nofollow noreferrer">link</a>. That metric represents "Cumulative CPU usage on all cores in seconds. This number divided by the elapsed time represents usage as a number of cores, regardless of any core limit that might be set."</p>

<p>Please let me know if you have further questions in regard to this.</p>
