mittelab / proxmox-via-prometheus-dashboard

Grafana Dashboard for Proxmox using Prometheus
MIT License
20 stars 3 forks source link

wrong cpu load #7

Open dormancygrace opened 8 months ago

dormancygrace commented 8 months ago

here is what I see in grafana image

and here is what i see in proxmox webui image

VMs CPU usage wrong too

pve-exporter 3.0.2, pve 8

gilkudik commented 8 months ago

Just change the CPU history widget to have a percentage 0-1.0 value with a softmax and max of 1.0; then on the Current CPU widget, change the value to "pve_cpu_usage_ratio{instance="$instance"} and on(id) pve_node_info".

dormancygrace commented 8 months ago

Thank you! Works like a charm =)

dormancygrace commented 8 months ago

Sorry, but i also need to fix Guest CPU Usage. Real value is ~30% in grafana i see ~6%

deviantintegral commented 5 months ago

I'm seeing the same issue with guest CPU usage. The current query is:

((pve_cpu_usage_ratio{instance="$instance"} / pve_cpu_usage_limit) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1

If I remove / pve_cpu_usage_limit I look to get data that matches the built-in Proxmox graphs. pve_cpu_usage_limit looks to contain the number of cores each guest is allocated, so it's artificially dividing any multi-core guest CPU load.

@dormancygrace can you confirm the same?

dormancygrace commented 5 months ago

@dormancygrace can you confirm the same?

Yes