remove broken disk graphs
This commit is contained in:
@@ -830,8 +830,6 @@
|
||||
</div>
|
||||
<label style="margin-top: 10px;">Memory (RAM + Swap) in MB</label>
|
||||
<canvas id="graphsMemoryChart" style="width: 100%;"></canvas>
|
||||
<label>Disk Usage in MB <span class="text-muted"> - Data is only collected twice a day</span></label>
|
||||
<canvas id="graphsDiskChart" style="width: 100%;"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-3
@@ -669,15 +669,13 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
}
|
||||
|
||||
var memoryQuery = 'summarize(sum(collectd.localhost.table-' + appId + '-memory.gauge-rss, collectd.localhost.table-' + appId + '-memory.gauge-swap), "' + timeBucketSize + 'min", "avg")';
|
||||
var diskQuery = 'summarize(collectd.localhost.du-' + appId + '.capacity-usage, "' + timeBucketSize + 'min", "avg")';
|
||||
|
||||
Client.graphs([ memoryQuery, diskQuery ], '-' + timePeriod + 'min', {}, function (error, result) {
|
||||
Client.graphs([ memoryQuery ], '-' + timePeriod + 'min', {}, function (error, result) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
var currentMemoryLimit = $scope.app.memoryLimit || $scope.app.manifest.memoryLimit || (256 * 1024 * 1024);
|
||||
|
||||
fillGraph('#graphsMemoryChart', result[0], 'Memory', 'memoryChart', currentMemoryLimit / 1024 / 1024);
|
||||
fillGraph('#graphsDiskChart', result[1], 'Disk', 'diskChart');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user