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:
parent
03ad300fb8
commit
6893305782
@ -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