VMware {code} Community
ssbangal
Contributor
Contributor

Determining Host level CPU utilization

Hi,

I am using the SDK to get the host level CPU utilization. I would like to know if there is a particular performance counter that i can specify which will give the average CPU utilization

I am able to get the average CPU utilization for all the different cores on the system using (cpu.usage.average). Below is a snapshot of the output. Should i use these individual values and calculate the average across all the cores?

Regards,

Sudhir

Counter ID: 2

Counter Instance: 0

Counter Info: cpu.usage.average - percent

Stats value: 30

Counter ID: 2

Counter Instance: 1

Counter Info: cpu.usage.average - percent

Stats value: 3

Counter ID: 2

Counter Instance: 2

Counter Info: cpu.usage.average - percent

Stats value: 2

Counter ID: 2

Counter Instance: 3

Counter Info: cpu.usage.average - percent

Stats value: 1

Counter ID: 2

Counter Instance: 4

Counter Info: cpu.usage.average - percent

Stats value: 2

Counter ID: 2

Counter Instance: 5

Counter Info: cpu.usage.average - percent

Stats value: 1

Counter ID: 2

Counter Instance: 6

Counter Info: cpu.usage.average - percent

Stats value: 3

Counter ID: 2

Counter Instance: 7

Counter Info: cpu.usage.average - percent

Stats value: 1

Counter ID: 2

Counter Instance: 8

Counter Info: cpu.usage.average - percent

Stats value: 3

Counter ID: 2

Counter Instance: 9

Counter Info: cpu.usage.average - percent

Stats value: 3

Counter ID: 2

Counter Instance:

Counter Info: cpu.usage.average - percent

Stats value: 9

Counter ID: 2

Counter Instance: 10

Counter Info: cpu.usage.average - percent

Stats value: 5

Counter ID: 2

Counter Instance: 11

Counter Info: cpu.usage.average - percent

Stats value: 2

Counter ID: 2

Counter Instance: 12

Counter Info: cpu.usage.average - percent

Stats value: 2

Counter ID: 2

Counter Instance: 13

Counter Info: cpu.usage.average - percent

Stats value: 1

Counter ID: 2

Counter Instance: 14

Counter Info: cpu.usage.average - percent

Stats value: 3

Counter ID: 2

Counter Instance: 15

Counter Info: cpu.usage.average - percent

Stats value: 1

0 Kudos
0 Replies