完善客户端的服务器情况

This commit is contained in:
wenc000 2020-08-10 22:15:02 +08:00
parent ae3d3349a0
commit 9da44bb452

View File

@ -137,7 +137,19 @@
text: 'CPU使用情况%'
},
tooltip: {
trigger: 'axis'
trigger: 'axis',
formatter: function(params, ticket, callback) {
var result = '';
for(var i = 0, item; item = params[i++];) {
if(result.length == 0) {
result += (item.name + '<br/>');
} else {
result += '<br/>';
}
result += (item.marker + item.seriesName + ': '+ item.data +'%');
}
return result;
}
},
legend: {
data: ['系统使用率', '用户使用率', '空闲率', '等待率']
@ -151,10 +163,22 @@
xAxis: {
type: 'category',
boundaryGap: false,
data: xDataTimeArray
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
data: xDataTimeArray,
},
yAxis: {
type: 'value'
type: 'value',
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
},
series: [
{
@ -198,7 +222,19 @@
text: '内存使用情况GB'
},
tooltip: {
trigger: 'axis'
trigger: 'axis',
formatter: function(params, ticket, callback) {
var result = '';
for(var i = 0, item; item = params[i++];) {
if(result.length == 0) {
result += (item.name + '<br/>');
} else {
result += '<br/>';
}
result += (item.marker + item.seriesName + ': '+ item.data +'GB');
}
return result;
}
},
legend: {
data: ['总量', '使用量', '空闲量']
@ -212,10 +248,22 @@
xAxis: {
type: 'category',
boundaryGap: false,
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
data: xDataTimeArray
},
yAxis: {
type: 'value'
type: 'value',
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
},
series: [
{
@ -254,7 +302,19 @@
text: 'JVM使用情况MB'
},
tooltip: {
trigger: 'axis'
trigger: 'axis',
formatter: function(params, ticket, callback) {
var result = '';
for(var i = 0, item; item = params[i++];) {
if(result.length == 0) {
result += (item.name + '<br/>');
} else {
result += '<br/>';
}
result += (item.marker + item.seriesName + ': '+ item.data +'MB');
}
return result;
}
},
legend: {
data: ['初始值', '最大值', '使用值']
@ -268,10 +328,22 @@
xAxis: {
type: 'category',
boundaryGap: false,
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
data: xDataTimeArray
},
yAxis: {
type: 'value'
type: 'value',
splitLine: {
show: true,
lineStyle: {
type: 'dotted',
}
},
},
series: [
{