www/DataStoreStatus.js: display loadavg stats

This commit is contained in:
Dietmar Maurer 2020-05-25 11:49:30 +02:00
parent 2c66a590c0
commit d8dc281992
2 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,7 @@ fn get_node_stats(
"swaptotal", "swapused", "swaptotal", "swapused",
"netin", "netout", "netin", "netout",
"roottotal", "rootused", "roottotal", "rootused",
"loadavg",
], ],
timeframe, timeframe,
cf, cf,

View File

@ -33,6 +33,7 @@ Ext.define('pve-rrd-node', {
'swapused', 'swapused',
'roottotal', 'roottotal',
'rootused', 'rootused',
'loadavg',
{ type: 'date', dateFormat: 'timestamp', name: 'time' } { type: 'date', dateFormat: 'timestamp', name: 'time' }
] ]
}); });
@ -75,6 +76,13 @@ Ext.define('PBS.DataStoreStatus', {
fieldTitles: [gettext('CPU usage'), gettext('IO delay')], fieldTitles: [gettext('CPU usage'), gettext('IO delay')],
store: rrdstore store: rrdstore
}, },
{
xtype: 'proxmoxRRDChart',
title: gettext('Server load'),
fields: ['loadavg'],
fieldTitles: [gettext('Load average')],
store: rrdstore
},
{ {
xtype: 'proxmoxRRDChart', xtype: 'proxmoxRRDChart',
title: gettext('Memory usage'), title: gettext('Memory usage'),