www/DataStoreStatus.js: display root disk stats
This commit is contained in:
		@ -29,7 +29,13 @@ fn get_node_stats(
 | 
			
		||||
 | 
			
		||||
    crate::rrd::extract_data(
 | 
			
		||||
        "host",
 | 
			
		||||
        &["cpu", "iowait", "memtotal", "memused", "swaptotal", "swapused", "netin", "netout"],
 | 
			
		||||
        &[
 | 
			
		||||
            "cpu", "iowait",
 | 
			
		||||
            "memtotal", "memused",
 | 
			
		||||
            "swaptotal", "swapused",
 | 
			
		||||
            "netin", "netout",
 | 
			
		||||
            "roottotal", "rootused",
 | 
			
		||||
        ],
 | 
			
		||||
        timeframe,
 | 
			
		||||
        cf,
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
@ -31,6 +31,8 @@ Ext.define('pve-rrd-node', {
 | 
			
		||||
	'memused',
 | 
			
		||||
	'swaptotal',
 | 
			
		||||
	'swapused',
 | 
			
		||||
	'roottotal',
 | 
			
		||||
	'rootused',
 | 
			
		||||
	{ type: 'date', dateFormat: 'timestamp', name: 'time' }
 | 
			
		||||
    ]
 | 
			
		||||
});
 | 
			
		||||
@ -93,6 +95,13 @@ Ext.define('PBS.DataStoreStatus', {
 | 
			
		||||
		    fields: ['netin','netout'],
 | 
			
		||||
		    store: rrdstore
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
		    xtype: 'proxmoxRRDChart',
 | 
			
		||||
		    title: gettext('Root Disk usage'),
 | 
			
		||||
		    fields: ['roottotal','rootused'],
 | 
			
		||||
		    fieldTitles: [gettext('Total'), gettext('Disk usage')],
 | 
			
		||||
		    store: rrdstore
 | 
			
		||||
		},
 | 
			
		||||
	    ]
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user