Fixup disk graph summary
This commit is contained in:
@@ -824,6 +824,8 @@
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<label>CPU Usage</label>
|
||||
<canvas id="graphsCPUUsageChart" style="width: 100%;"></canvas>
|
||||
<label>Memory Usage</label>
|
||||
<canvas id="graphsMemoryChart" style="width: 100%;"></canvas>
|
||||
<label>Disk Usage</label>
|
||||
|
||||
@@ -656,9 +656,9 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
}
|
||||
|
||||
var memoryQuery = 'summarize(collectd.localhost.table-' + appId + '-memory.gauge-rss, "' + timeBucketSize + 'min", "avg")';
|
||||
var diskQuery = 'absolute(collectd.localhost.du-' + appId + '.capacity-usage)';
|
||||
var diskQuery = 'summarize(collectd.localhost.du-' + appId + '.capacity-usage, "' + timeBucketSize + 'min", "avg")';
|
||||
|
||||
Client.graphs([memoryQuery, diskQuery], '-' + timePeriod + 'min', {}, function (error, result) {
|
||||
Client.graphs([ memoryQuery, diskQuery ], '-' + timePeriod + 'min', {}, function (error, result) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
fillGraph('#graphsMemoryChart', result[0], 'Memory', 'memoryChart');
|
||||
|
||||
Reference in New Issue
Block a user