1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: OpenNebula vm exporter wrong unit for total mem

Metric is in bytes, MB was published
This commit is contained in:
Ruben S. Montero 2024-09-23 12:03:04 +02:00
parent 03ad300fb8
commit 6893305782
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -70,7 +70,7 @@ class OpenNebulaVMCollector
'vm_mem_total_bytes' => {
:type => :gauge,
:docstr => 'Total memory capacity',
:value => ->(v) { Integer(v['TEMPLATE/MEMORY']) * 1024 },
:value => ->(v) { Integer(v['TEMPLATE/MEMORY']) * 1024 * 1024},
:labels => LABELS
},
'vm_cpu_ratio' => {