www/DataStoreStatus.js: display netin/netout

This commit is contained in:
Dietmar Maurer 2020-05-24 17:47:26 +02:00
parent 8f0cec2642
commit a608806f65
2 changed files with 11 additions and 3 deletions

View File

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

View File

@ -25,8 +25,10 @@ Ext.define('pve-rrd-node', {
return value*100; return value*100;
} }
}, },
"memtotal", 'netin',
"memused", 'netout',
'memtotal',
'memused',
{ type: 'date', dateFormat: 'timestamp', name: 'time' } { type: 'date', dateFormat: 'timestamp', name: 'time' }
] ]
}); });
@ -74,6 +76,12 @@ Ext.define('PBS.DataStoreStatus', {
fieldTitles: [gettext('Total'), gettext('RAM usage')], fieldTitles: [gettext('Total'), gettext('RAM usage')],
store: rrdstore store: rrdstore
}, },
{
xtype: 'proxmoxRRDChart',
title: gettext('Network traffic'),
fields: ['netin','netout'],
store: rrdstore
},
] ]
}; };