src/bin/proxmox-backup-proxy.rs: simplify code

and gather all stats for the root disk
This commit is contained in:
Dietmar Maurer
2020-05-28 12:30:54 +02:00
parent 547e3c2f6c
commit 91e5bb49f5
3 changed files with 92 additions and 69 deletions

View File

@ -125,10 +125,31 @@ Ext.define('PBS.ServerStatus', {
{
xtype: 'proxmoxRRDChart',
title: gettext('Root Disk usage'),
fields: ['roottotal','rootused'],
fields: ['total','used'],
fieldTitles: [gettext('Total'), gettext('Disk usage')],
store: rrdstore
},
{
xtype: 'proxmoxRRDChart',
title: gettext('Root Disk Transfer Rate (bytes/second)'),
fields: ['read_bytes','write_bytes'],
fieldTitles: [gettext('Read'), gettext('Write')],
store: rrdstore
},
{
xtype: 'proxmoxRRDChart',
title: gettext('Root Disk Input/Output Operations per Second (IOPS)'),
fields: ['read_ios','write_ios'],
fieldTitles: [gettext('Read'), gettext('Write')],
store: rrdstore
},
{
xtype: 'proxmoxRRDChart',
title: gettext('Root Disk IO Delay (ms)'),
fields: ['read_delay','write_delay'],
fieldTitles: [gettext('Read'), gettext('Write')],
store: rrdstore
},
]
};