1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-20 14:03:36 +03:00

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

Metric is in bytes, MB was published

(cherry picked from commit 689330578227ec3e860d215f3a5b48c9909b2701)
This commit is contained in:
Ruben S. Montero 2024-09-23 12:03:04 +02:00
parent f01175bca8
commit 9d7b9b107e
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' => {