@ -36,40 +36,40 @@ export const rangeConfigInit = [
color : 'rgb(250, 200, 88)' ,
color : 'rgb(250, 200, 88)' ,
} ,
} ,
} ,
} ,
{
// {
name : '算力' ,
// name: '算力',
query : ` sum(hami_container_vcore_allocated) / sum(hami_core_size) * 100 ` ,
// query: ` sum(hami_container_vcore_allocated) / sum(hami_core_size) * 100`,
data : [ ] ,
// data: [],
type : 'line' ,
// type: 'line',
areaStyle : {
// areaStyle: {
normal : {
// normal: {
color : {
// color: {
type : 'linear' ,
// type: 'linear',
x : 0 ,
// x: 0,
y : 0 ,
// y: 0,
x2 : 0 ,
// x2: 0,
y2 : 1 ,
// y2: 1,
colorStops : [
// colorStops: [
{
// {
offset : 0 ,
// offset: 0,
color : 'rgba(84, 112, 198, 0.16)' ,
// color: 'rgba(84, 112, 198, 0.16)',
} ,
// },
{
// {
offset : 1 ,
// offset: 1,
color : 'rgba(84, 112, 198, 0.00)' ,
// color: 'rgba(84, 112, 198, 0.00)',
} ,
// },
] ,
// ],
global : false ,
// global: false,
} ,
// },
} ,
// },
} ,
// },
itemStyle : {
// itemStyle: {
color : 'rgb(84, 112, 198)' ,
// color: 'rgb(84, 112, 198)',
} ,
// },
lineStyle : {
// lineStyle: {
color : 'rgb(84, 112, 198)' ,
// color: 'rgb(84, 112, 198)',
} ,
// },
} ,
// },
{
{
name : '显存' ,
name : '显存' ,
query : ` sum(hami_container_vmemory_allocated) / sum(hami_memory_size) * 100 ` ,
query : ` sum(hami_container_vmemory_allocated) / sum(hami_memory_size) * 100 ` ,
@ -177,39 +177,39 @@ export const rangeConfigInit = [
{
{
title : '资源使用趋势' ,
title : '资源使用趋势' ,
dataSource : [
dataSource : [
{
// {
name : '算力' ,
// name: '算力',
query : ` avg(hami_core_util_avg) ` ,
// query: `avg(hami_core_util_avg)`,
data : [ ] ,
// data: [],
areaStyle : {
// areaStyle: {
normal : {
// normal: {
color : {
// color: {
type : 'linear' ,
// type: 'linear',
x : 0 , // 渐变起始点 0%
// x: 0, // 渐变起始点 0%
y : 0 , // 渐变起始点 0%
// y: 0, // 渐变起始点 0%
x2 : 0 , // 渐变结束点 100%
// x2: 0, // 渐变结束点 100%
y2 : 1 , // 渐变结束点 100%
// y2: 1, // 渐变结束点 100%
colorStops : [
// colorStops: [
{
// {
offset : 0 ,
// offset: 0,
color : 'rgba(84, 112, 198, 0.16)' , // 渐变起始颜色
// color: 'rgba(84, 112, 198, 0.16)', // 渐变起始颜色
} ,
// },
{
// {
offset : 1 ,
// offset: 1,
color : 'rgba(84, 112, 198, 0.00)' , // 渐变结束颜色
// color: 'rgba(84, 112, 198, 0.00)', // 渐变结束颜色
} ,
// },
] ,
// ],
global : false , // 缺省为 false
// global: false, // 缺省为 false
} ,
// },
} ,
// },
} ,
// },
itemStyle : {
// itemStyle: {
color : 'rgb(84, 112, 198)' , // 设置线条颜色为橙色
// color: 'rgb(84, 112, 198)', // 设置线条颜色为橙色
} ,
// },
lineStyle : {
// lineStyle: {
color : 'rgb(84, 112, 198)' , // 设置线条颜色为橙色
// color: 'rgb(84, 112, 198)', // 设置线条颜色为橙色
} ,
// },
} ,
// },
{
{
name : '显存' ,
name : '显存' ,
query : ` sum(hami_memory_used) / sum(hami_memory_size) * 100 ` ,
query : ` sum(hami_memory_used) / sum(hami_memory_size) * 100 ` ,