-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear values for vmware_vm_cpu_usage_average metric #3
Comments
From @dannyk81 on February 15, 2018 17:47 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 |
From @dannyk81 on February 15, 2018 17:54 same issue with |
If it it's suppose to be divided by 100 I don't think so.
Sent from ProtonMail mobile
…-------- Original Message --------
On Oct 7, 2018, 12:49 PM, Danny Kulchinsky wrote:
***@***.***(https://github.com/pryorda) was this actually fixed in [#16](#16)?
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#3 (comment)), or [mute the thread](https://github.com/notifications/unsubscribe-auth/AFYgHBqKYjJqqsvw7nsO_xdTlA9LiU_Xks5uikytgaJpZM4U8Q1_).
|
Here's a sample:
Above should be percentages, only dividing them by 100 do I get a meaningful value. Can you confirm it's the same in your case? |
Being divided by 100 def looks better. I'll add a PR later tonight. |
Ugh, never got around to this but based on the verbiage in here: https://www.vmware.com/support/developer/converter-sdk/conv61_apireference/cpu_counters.html
and
I'm wondering if we should create some kind of mapping to get the correct values? Something like:
|
The perf metrics data object returned should include the This way, we should be able to use a generic function to check the |
According to this: https://www.vmware.com/support/developer/converter-sdk/conv61_apireference/cpu_counters.html This is how it gets the value: virtual CPU usage = usagemhz / (# of virtual CPUs x core frequency) |
Thanks for you reply ! However, this is what I get running a few tests. Example for a VM :
Then it is multiplied by 10 000 because the value I get in prometheus is 9133 so the correct formula is : Or I'm getting the wrong unit in core frequency, because 18953 / (8 * 0.2593993) = 9133 |
I'm not sure. I dont think we do any mangling of that, but I can double check. I "assume" its the second formula. |
Has someone found a way to use this value ? Like how to convert it to %cpu used ? Would be helpful! |
I usually just graph all the vms and find the outliers. I don't alert on cpu usage just load. |
@jdelvecchio I use this metric in various dashboards and simply divide the value by 100. running I wonder if this has something to do with sockets/core? (though it shouldn't) in our case the cores per socket is always 1, how about you? |
@dannyk81 running I got my maths wrong, it seems to be %used. Thanks to both of you for the details and the help. As for sockets/core it depends on the VM, we have a bit of both. |
indeed, this metrics is however the value returned does not have a decimal point, hence the need to divide by 100. |
From @dannyk81 on February 10, 2018 1:53
I can't quite figure out the values of
vmware_vm_cpu_usage_average
metric, for example: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?
Copied from original issue: rverchere/vmware_exporter#29
The text was updated successfully, but these errors were encountered: