diff --git a/src/api2/node/rrd.rs b/src/api2/node/rrd.rs index ccfe61ec..a8e82a32 100644 --- a/src/api2/node/rrd.rs +++ b/src/api2/node/rrd.rs @@ -29,7 +29,13 @@ fn get_node_stats( crate::rrd::extract_data( "host", - &["cpu", "iowait", "memtotal", "memused", "swaptotal", "swapused", "netin", "netout"], + &[ + "cpu", "iowait", + "memtotal", "memused", + "swaptotal", "swapused", + "netin", "netout", + "roottotal", "rootused", + ], timeframe, cf, ) diff --git a/www/DataStoreStatus.js b/www/DataStoreStatus.js index 323be2e0..a97b983d 100644 --- a/www/DataStoreStatus.js +++ b/www/DataStoreStatus.js @@ -31,6 +31,8 @@ Ext.define('pve-rrd-node', { 'memused', 'swaptotal', 'swapused', + 'roottotal', + 'rootused', { type: 'date', dateFormat: 'timestamp', name: 'time' } ] }); @@ -93,6 +95,13 @@ Ext.define('PBS.DataStoreStatus', { fields: ['netin','netout'], store: rrdstore }, + { + xtype: 'proxmoxRRDChart', + title: gettext('Root Disk usage'), + fields: ['roottotal','rootused'], + fieldTitles: [gettext('Total'), gettext('Disk usage')], + store: rrdstore + }, ] };