www/DataStoreStatus.js: display netin/netout
This commit is contained in:
parent
8f0cec2642
commit
a608806f65
@ -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,
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user