Skip to content
This repository has been archived by the owner on Jul 23, 2018. It is now read-only.

Unclear values for vmware_vm_cpu_usage_average metric #29

Open
dannyk81 opened this issue Feb 10, 2018 · 3 comments
Open

Unclear values for vmware_vm_cpu_usage_average metric #29

dannyk81 opened this issue Feb 10, 2018 · 3 comments

Comments

@dannyk81
Copy link
Contributor

I can't quite figure out the values of vmware_vm_cpu_usage_average metric, for example:

vmware_vm_cpu_usage_average{instance="<vcenter>",job="vmware-exporter",vm_name="xyz1"} | 202
vmware_vm_cpu_usage_average{instance="<vcenter>",job="vmware-exporter",vm_name="xyz2"} | 225
vmware_vm_cpu_usage_average{instance="<vcenter>",job="vmware-exporter",vm_name="xyz3"} | 4015
vmware_vm_cpu_usage_average{instance="<vcenter>",job="vmware-exporter",vm_name="xyz4"} | 207
vmware_vm_cpu_usage_average{instance="<vcenter>",job="vmware-exporter",vm_name="xyz5"} | 209

according to this https://www.vmware.com/support/developer/converter-sdk/conv61_apireference/cpu_counters.html

The description of this counter is Amount of actively used virtual CPU, as a percentage of total available CPU, but the values I'm seeing do not seem like percentages.

Any clues?

@dannyk81
Copy link
Contributor Author

dannyk81 commented Feb 15, 2018

@rverchere

So, seems like dividing the value by 100 gets the correct result 😄 (compared to figures we see in vCenter)

Perhaps this is due to converting the value to float here:

float(sum(result[0].value[0].value)))

@dannyk81
Copy link
Contributor Author

same issue with vmware_vm_mem_usage_average metric, need to divide by 100 the value to get correct result.

@pryorda
Copy link

pryorda commented Jun 29, 2018

This issue was moved to pryorda/vmware_exporter#3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants