diff --git a/src/api2/node/rrd.rs b/src/api2/node/rrd.rs index de4d279c..e2370b3d 100644 --- a/src/api2/node/rrd.rs +++ b/src/api2/node/rrd.rs @@ -29,7 +29,7 @@ fn get_node_stats( crate::rrd::extract_data( "host", - &["cpu", "iowait", "memtotal", "memused"], + &["cpu", "iowait", "memtotal", "memused", "netin", "netout"], timeframe, cf, ) diff --git a/www/DataStoreStatus.js b/www/DataStoreStatus.js index 3c24a899..55719828 100644 --- a/www/DataStoreStatus.js +++ b/www/DataStoreStatus.js @@ -25,8 +25,10 @@ Ext.define('pve-rrd-node', { return value*100; } }, - "memtotal", - "memused", + 'netin', + 'netout', + 'memtotal', + 'memused', { type: 'date', dateFormat: 'timestamp', name: 'time' } ] }); @@ -74,6 +76,12 @@ Ext.define('PBS.DataStoreStatus', { fieldTitles: [gettext('Total'), gettext('RAM usage')], store: rrdstore }, + { + xtype: 'proxmoxRRDChart', + title: gettext('Network traffic'), + fields: ['netin','netout'], + store: rrdstore + }, ] };