Show cpu and memory stats of every node

This commit is contained in:
Jonathan Leibiusky @xetorthio
2016-11-18 13:52:47 -03:00
parent bc7dbead33
commit 8b0749a9ba
6 changed files with 121 additions and 7 deletions

View File

@@ -132,6 +132,12 @@
$scope.connected = true;
});
socket.on('instance stats', function(name, mem, cpu) {
$scope.idx[name].mem = mem;
$scope.idx[name].cpu = cpu;
$scope.$apply();
});
$scope.socket = socket;
var i = response.data;