Commit be112d89 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

add diskread, diskwrite, netin, netout to ResourceStore grid stats

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 8a36adca
......@@ -51,6 +51,10 @@ sub extract_vm_stats {
$entry->{mem} = ($d->[6] || 0) + 0;
$entry->{maxdisk} = ($d->[7] || 0) + 0;
$entry->{disk} = ($d->[8] || 0) + 0;
$entry->{netin} = ($d->[9] || 0) + 0;
$entry->{netout} = ($d->[10] || 0) + 0;
$entry->{diskread} = ($d->[11] || 0) + 0;
$entry->{diskwrite} = ($d->[12] || 0) + 0;
};
return $entry;
......
......@@ -143,6 +143,38 @@ Ext.define('PVE.data.ResourceStore', {
sortable: true,
width: 60
},
diskread: {
header: 'Total Disk Read',
type: 'integer',
hidden: true,
sortable: true,
renderer: PVE.Utils.format_size,
width: 100
},
diskwrite: {
header: 'Total Disk Write',
type: 'integer',
hidden: true,
sortable: true,
renderer: PVE.Utils.format_size,
width: 100
},
netin: {
header: 'Total NetIn',
type: 'integer',
hidden: true,
sortable: true,
renderer: PVE.Utils.format_size,
width: 100
},
netout: {
header: 'Total NetOut',
type: 'integer',
hidden: true,
sortable: true,
renderer: PVE.Utils.format_size,
width: 100
},
uptime: {
header: gettext('Uptime'),
type: 'integer',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment