www/DataStoreStatus.js: display root disk stats

This commit is contained in:
Dietmar Maurer 2020-05-25 11:10:44 +02:00
parent dd15c0aa3b
commit 3e930f2bdc
2 changed files with 16 additions and 1 deletions

View File

@ -29,7 +29,13 @@ fn get_node_stats(
crate::rrd::extract_data( crate::rrd::extract_data(
"host", "host",
&["cpu", "iowait", "memtotal", "memused", "swaptotal", "swapused", "netin", "netout"], &[
"cpu", "iowait",
"memtotal", "memused",
"swaptotal", "swapused",
"netin", "netout",
"roottotal", "rootused",
],
timeframe, timeframe,
cf, cf,
) )

View File

@ -31,6 +31,8 @@ Ext.define('pve-rrd-node', {
'memused', 'memused',
'swaptotal', 'swaptotal',
'swapused', 'swapused',
'roottotal',
'rootused',
{ type: 'date', dateFormat: 'timestamp', name: 'time' } { type: 'date', dateFormat: 'timestamp', name: 'time' }
] ]
}); });
@ -93,6 +95,13 @@ Ext.define('PBS.DataStoreStatus', {
fields: ['netin','netout'], fields: ['netin','netout'],
store: rrdstore store: rrdstore
}, },
{
xtype: 'proxmoxRRDChart',
title: gettext('Root Disk usage'),
fields: ['roottotal','rootused'],
fieldTitles: [gettext('Total'), gettext('Disk usage')],
store: rrdstore
},
] ]
}; };