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:
parent
f01175bca8
commit
9d7b9b107e
@ -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' => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user