|
|
@ -8,6 +8,7 @@ monitor.processes.fetch = function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
monitor.processes.init = function (x) {
|
|
|
|
monitor.processes.init = function (x) {
|
|
|
|
|
|
|
|
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
monitor.processes.summary.init(r)
|
|
|
|
monitor.processes.summary.init(r)
|
|
|
|
var keys = jx.utils.keys(r)
|
|
|
|
var keys = jx.utils.keys(r)
|
|
|
@ -79,6 +80,7 @@ monitor.processes.render = function(label,data) {
|
|
|
|
var id = jx.dom.get.value('latest_processes_label')
|
|
|
|
var id = jx.dom.get.value('latest_processes_label')
|
|
|
|
var app = item.label
|
|
|
|
var app = item.label
|
|
|
|
monitor.processes.trend.init(id, app)
|
|
|
|
monitor.processes.trend.init(id, app)
|
|
|
|
|
|
|
|
|
|
|
|
if (item.anomaly == true) {
|
|
|
|
if (item.anomaly == true) {
|
|
|
|
jx.dom.show('has_anomaly')
|
|
|
|
jx.dom.show('has_anomaly')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -155,7 +157,7 @@ monitor.processes.trend.render = function (logs, key,label) {
|
|
|
|
// var _y = {}
|
|
|
|
// var _y = {}
|
|
|
|
var cpu = {yAxisID:'0', label: 'CPU Usage (%)', data: [] ,backgroundColor:'transparent',borderColor:COLORS[187],fill:false,borderWidth:1}
|
|
|
|
var cpu = {yAxisID:'0', label: 'CPU Usage (%)', data: [] ,backgroundColor:'transparent',borderColor:COLORS[187],fill:false,borderWidth:1}
|
|
|
|
var mem = {yAxisID:'0',label : 'Memory Usage(%)',data:[],backgroundColor:'transparent',borderColor:COLORS[32],fill:false,borderWidth:1}
|
|
|
|
var mem = {yAxisID:'0',label : 'Memory Usage(%)',data:[],backgroundColor:'transparent',borderColor:COLORS[32],fill:false,borderWidth:1}
|
|
|
|
var proc= {yAxisID:'1',label : 'Proc Count',data:[],backgroundColor:'transparent',borderColor:COLORS[42],fill:false,borderWidth:1}
|
|
|
|
var proc= {yAxisID:'1',label : 'Proc Count',data:[],backgroundColor:'transparent',borderColor:COLORS[542],fill:false,borderWidth:1}
|
|
|
|
jx.utils.patterns.visitor(logs,function(item){
|
|
|
|
jx.utils.patterns.visitor(logs,function(item){
|
|
|
|
x = new Date(item.year,item.month-1,item.day,item.hour,item.minute)
|
|
|
|
x = new Date(item.year,item.month-1,item.day,item.hour,item.minute)
|
|
|
|
y = item[key]
|
|
|
|
y = item[key]
|
|
|
@ -280,6 +282,7 @@ monitor.sandbox.init = function () {
|
|
|
|
jx.dom.hide('inspect_sandbox')
|
|
|
|
jx.dom.hide('inspect_sandbox')
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
httpclient.get('/sandbox', function (x) {
|
|
|
|
httpclient.get('/sandbox', function (x) {
|
|
|
|
|
|
|
|
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
if (r.length > 0){
|
|
|
|
if (r.length > 0){
|
|
|
|
monitor.sandbox.render(r);
|
|
|
|
monitor.sandbox.render(r);
|
|
|
|