www/DataStoreStatus.js: display root disk stats
This commit is contained in:
		@ -29,7 +29,13 @@ fn get_node_stats(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    crate::rrd::extract_data(
 | 
					    crate::rrd::extract_data(
 | 
				
			||||||
        "host",
 | 
					        "host",
 | 
				
			||||||
        &["cpu", "iowait", "memtotal", "memused", "swaptotal", "swapused", "netin", "netout"],
 | 
					        &[
 | 
				
			||||||
 | 
					            "cpu", "iowait",
 | 
				
			||||||
 | 
					            "memtotal", "memused",
 | 
				
			||||||
 | 
					            "swaptotal", "swapused",
 | 
				
			||||||
 | 
					            "netin", "netout",
 | 
				
			||||||
 | 
					            "roottotal", "rootused",
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
        timeframe,
 | 
					        timeframe,
 | 
				
			||||||
        cf,
 | 
					        cf,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
				
			|||||||
@ -31,6 +31,8 @@ Ext.define('pve-rrd-node', {
 | 
				
			|||||||
	'memused',
 | 
						'memused',
 | 
				
			||||||
	'swaptotal',
 | 
						'swaptotal',
 | 
				
			||||||
	'swapused',
 | 
						'swapused',
 | 
				
			||||||
 | 
						'roottotal',
 | 
				
			||||||
 | 
						'rootused',
 | 
				
			||||||
	{ type: 'date', dateFormat: 'timestamp', name: 'time' }
 | 
						{ type: 'date', dateFormat: 'timestamp', name: 'time' }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
@ -93,6 +95,13 @@ Ext.define('PBS.DataStoreStatus', {
 | 
				
			|||||||
		    fields: ['netin','netout'],
 | 
							    fields: ['netin','netout'],
 | 
				
			||||||
		    store: rrdstore
 | 
							    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