Grafana dashboard: ModelArts-Task-View

任务视图抬头部分展示了当前任务的概要信息，包括任务ID、类型、开始时间以及运行时长。紧接着展示了当前任务对GPU、NPU和CPU&内存等资源的使用情况，包括各种资源的负载占比分析以及资源使用情况的时域展示，并且罗列了各种资源分布的节点信息以及当前任务对节点配给的资源利用情况的概要信息。

{
  "__inputs": [
    {
      "name": "DS_CNEAST3",
      "label": "cneast3",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "VAR_SCRAPE_INTERVAL",
      "type": "constant",
      "label": "scrape_interval",
      "value": "10s",
      "description": ""
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.1.7"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 61,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "该信息提取自当前任务的指标信息。开始时间为当前任务的第一个指标的时戳时间。运行时间为当前任务最后一个指标的时戳时间减去第一个指标的时戳时间。",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "service_id (firstNotNull)"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "任务ID"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "modelarts_service (firstNotNull)"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "类型"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "user_id"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "创建用户"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Time (firstNotNull)"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "开始时间"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Time (lastNotNull)"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "duration_time_ms"
            },
            "properties": [
              {
                "id": "unit",
                "value": "ms"
              },
              {
                "id": "displayName",
                "value": "运行时长"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 3,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 2,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "ma_container_cpu_limit_core{service_id=\"$service_id\"}",
          "format": "table",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        }
      ],
      "timeFrom": "30d",
      "title": "任务属性",
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Time": {
                "aggregations": [
                  "firstNotNull",
                  "lastNotNull"
                ],
                "operation": "aggregate"
              },
              "instance_name": {
                "aggregations": []
              },
              "modelarts_service": {
                "aggregations": [
                  "firstNotNull"
                ],
                "operation": "aggregate"
              },
              "service_id": {
                "aggregations": [
                  "firstNotNull"
                ],
                "operation": "aggregate"
              },
              "user_id": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "duration_time_ms",
            "binary": {
              "left": "Time (lastNotNull)",
              "operator": "-",
              "reducer": "sum",
              "right": "Time (firstNotNull)"
            },
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Time (firstNotNull)",
                "Time (lastNotNull)"
              ],
              "reducer": "range"
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "Time (firstNotNull)": 3,
              "Time (lastNotNull)": 4,
              "Time_Range": 5,
              "modelarts_service (firstNotNull)": 1,
              "service_id (firstNotNull)": 0,
              "user_id": 2
            },
            "renameByName": {}
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务可用的GPU资源",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "count"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "卡数"
              },
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_gpu_mem_total_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "显存量"
              },
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 3,
        "x": 0,
        "y": 3
      },
      "id": 6,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "count(count by(gpu_uuid) (ma_container_gpu_util{service_id=\"$service_id\"})) OR on() vector(0)",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_gpu_mem_total_megabytes{service_id=\"$service_id\"}) OR on() vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "GPU资源配给",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/(^count)[(].*/",
            "renamePattern": "$1"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/sum\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务使用GPU的负载时间占比。利用率小于50%为极低负载，大于等于50%小于85%为正常负载，大于等于85%为正常负载。",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 3,
        "y": 3
      },
      "id": 34,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_gpu_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_gpu_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_gpu_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "GPU负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务使用显存的负载时间占比。利用率小于50%为极低负载，大于等于50%小于85%为正常负载，大于等于85%为正常负载。",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 7,
        "y": 3
      },
      "id": 41,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_gpu_mem_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_gpu_mem_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_gpu_mem_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "显存负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的GPU资源使用情况",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_util$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.thresholdsStyle",
                "value": {
                  "mode": "dashed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_megabytes$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              },
              {
                "id": "min",
                "value": 0
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_gpu_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "GPU利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_gpu_mem_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "显存利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_gpu_mem_used_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "使用显存量"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 13,
        "x": 11,
        "y": 3
      },
      "id": 37,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "width": 360
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "repeatDirection": "h",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(avg_over_time(ma_container_gpu_util{service_id=\"$service_id\"}[$__interval]))",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg(avg_over_time(ma_container_gpu_mem_util{service_id=\"$service_id\"}[$__interval]))",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_gpu_mem_used_megabytes{service_id=\"$service_id\"})",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "GPU资源使用情况",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "GPU节点使用概要",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": true,
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*利用率$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用卡数"
            },
            "properties": [
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用显存"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "节点IP"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "",
                    "url": "/d/vrpxTCYVz/modelarts-task-detail-view?orgId=1&${data_source:queryparam}&${service_id:queryparam}&var-node_ip=${__data.fields.node_ip}&from=${__from}&to=${__to}"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 11
      },
      "id": 47,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "count by(node_ip) (count by(node_ip, gpu_index) (ma_container_gpu_util{service_id=\"$service_id\"}))",
          "format": "table",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_gpu_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum by(node_ip) (ma_container_gpu_mem_used_megabytes{service_id=\"$service_id\"})",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_gpu_mem_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "D"
        }
      ],
      "title": "GPU节点使用概要",
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Value": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #A": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #B": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #C": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #D": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #E": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #F": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #G": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #H": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "node_ip": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value #A (max)": "可用卡数",
              "Value #B (mean)": "GPU平均利用率",
              "Value #C (mean)": "可用显存",
              "Value #D (mean)": "显存平均利用率",
              "node_ip": "节点IP"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务可用的NPU资源",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "count"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "卡数"
              },
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_npu_memory_total_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "内存量"
              },
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 3,
        "x": 0,
        "y": 21
      },
      "id": 20,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "count(count by(node_ip, npu_id) (ma_container_npu_util{service_id=\"$service_id\"})) OR on() vector(0)",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_npu_memory_total_megabytes{service_id=\"$service_id\"}) OR on() vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "NPU资源",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/(^count)[(].*/",
            "renamePattern": "$1"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/sum\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务运行期间使用的NPU负载时间占比",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 3,
        "y": 21
      },
      "id": 42,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_npu_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_npu_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_npu_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "NPU负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务运行期间使用的NPU内存负载时间占比",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 7,
        "y": 21
      },
      "id": 43,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_npu_memory_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_npu_memory_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_npu_memory_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "NPU内存负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的NPU资源使用情况",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "purple",
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_util$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.thresholdsStyle",
                "value": {
                  "mode": "dashed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_megabytes$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_npu_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "NPU利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_npu_memory_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "NPU内存利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_npu_memory_used_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "使用NPU内存量"
              },
              {
                "id": "min",
                "value": 0
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 13,
        "x": 11,
        "y": 21
      },
      "id": 39,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "width": 360
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "repeatDirection": "h",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(avg_over_time(ma_container_npu_util{service_id=\"$service_id\"}[$__interval]))",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg(avg_over_time(ma_container_npu_memory_util{service_id=\"$service_id\"}[$__interval]))",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_npu_memory_used_megabytes{service_id=\"$service_id\"})",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "NPU资源使用情况",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "NPU节点使用概要",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": true,
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*利用率$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red"
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用卡数"
            },
            "properties": [
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用内存"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "节点IP"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "",
                    "url": "/d/vrpxTCYVz/modelarts-task-detail-view?orgId=1&${data_source:queryparam}&${service_id:queryparam}&var-node_ip=${__data.fields.node_ip}&from=${__from}&to=${__to}"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 29
      },
      "id": 50,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "count by(node_ip) (count by(node_ip, npu_id) (ma_container_npu_util{service_id=\"$service_id\"}))",
          "format": "table",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_npu_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum by(node_ip) (ma_container_npu_memory_used_megabytes{service_id=\"$service_id\"})",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_npu_memory_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "D"
        }
      ],
      "title": "NPU节点使用概要",
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Value": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #A": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #B": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #C": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #D": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #E": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #F": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #G": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #H": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "node_ip": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value #A (max)": "可用卡数",
              "Value #B (mean)": "NPU平均利用率",
              "Value #C (mean)": "可用内存",
              "Value #D (mean)": "内存平均利用率",
              "node_ip": "节点IP"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务可用的CPU&内存资源",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_cpu_limit_core"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "核数"
              },
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_memory_capacity_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "内存量"
              },
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 3,
        "x": 0,
        "y": 39
      },
      "id": 19,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_cpu_limit_core{service_id=\"$service_id\"}) OR on() vector(0)",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_memory_capacity_megabytes{service_id=\"$service_id\"}) OR on() vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "CPU&内存资源",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/(^count)[(].*/",
            "renamePattern": "$1_count"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/sum\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务运行期间使用的CPU负载时间占比",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 3,
        "y": 39
      },
      "id": 44,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_cpu_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_cpu_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_cpu_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "CPU负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务运行期间使用的内存时间占比",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "正常负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "较低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "极低负载"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 7,
        "y": 39
      },
      "id": 45,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(count_over_time((ma_container_memory_util{service_id=\"$service_id\"} >= 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_memory_util{service_id=\"$service_id\"} >= 50 < 85)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(count_over_time((ma_container_memory_util{service_id=\"$service_id\"} < 50)[$__range:$scrape_interval])) OR on() vector(0)",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "内存负载占比",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的CPU&内存资源使用情况",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_util$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red"
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.thresholdsStyle",
                "value": {
                  "mode": "dashed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*_megabytes$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              },
              {
                "id": "min",
                "value": 0
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_cpu_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "CPU利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_memory_util"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "内存利用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ma_container_memory_used_megabytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "使用内存量"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 13,
        "x": 11,
        "y": 39
      },
      "id": 40,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "width": 360
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "repeatDirection": "h",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(avg_over_time(ma_container_cpu_util{service_id=\"$service_id\"}[$__interval]))",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg(avg_over_time(ma_container_memory_util{service_id=\"$service_id\"}[$__interval]))",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_memory_used_megabytes{service_id=\"$service_id\"})",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "title": "CPU&内存资源使用情况",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的磁盘IO(kilobytes/sec)",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": true,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "KBs"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_disk_read_kilobytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "读取速率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_disk_write_kilobytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "写入速率"
              },
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "custom.transform",
                "value": "negative-Y"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 0,
        "y": 47
      },
      "id": 36,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(ma_container_disk_read_kilobytes{service_id=\"$service_id\"}) OR vector(0)",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_disk_write_kilobytes{service_id=\"$service_id\"}) OR vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "磁盘IO(kilobytes/sec)",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的网络IO(bytes/sec)",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": true,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_receive_bytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "接收速率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_transmit_bytes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "发送速率"
              },
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "custom.transform",
                "value": "negative-Y"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 8,
        "y": 47
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(ma_container_network_receive_bytes{service_id=\"$service_id\"}) OR vector(0)",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_network_transmit_bytes{service_id=\"$service_id\"}) OR vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "网络IO(bytes/sec)",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "当前任务的网络IO(packets/sec)",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": true,
            "axisColorMode": "series",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 2,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "pps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_receive_packets"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "接收速率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_transmit_packets"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "发送速率"
              },
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "custom.transform",
                "value": "negative-Y"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_receive_error_packets"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "接收错包速率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "summa_container_network_transmit_error_packets"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "发送错包速率"
              },
              {
                "id": "custom.transform",
                "value": "negative-Y"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 16,
        "y": 47
      },
      "id": 35,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "asc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(ma_container_network_receive_packets{service_id=\"$service_id\"}) OR vector(0)",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_network_transmit_packets{service_id=\"$service_id\"}) OR vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_network_receive_error_packets{service_id=\"$service_id\"}) OR vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum(ma_container_network_transmit_error_packets{service_id=\"$service_id\"}) OR vector(0)",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "D"
        }
      ],
      "title": "网络IO(packets/sec)",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\\((.*)[{].*/",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${data_source}"
      },
      "description": "CPU&内存&磁盘&网络使用概要",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": true,
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*利用率$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 100
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red"
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "green",
                      "value": 85
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用CPU核数"
            },
            "properties": [
              {
                "id": "unit",
                "value": "none"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用内存"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decmbytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*Read|Write平均速率$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "KBs"
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*Receive|Send平均速率$/"
            },
            "properties": [
              {
                "id": "unit",
                "value": "Bps"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "节点IP"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "",
                    "url": "/d/vrpxTCYVz/modelarts-task-detail-view?orgId=1&${data_source:queryparam}&${service_id:queryparam}&var-node_ip=${__data.fields.node_ip}&from=${__from}&to=${__to}"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 56
      },
      "id": 51,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.1.7",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum by(node_ip) (ma_container_cpu_limit_core{service_id=\"$service_id\"})",
          "format": "table",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_cpu_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "sum by(node_ip) (ma_container_memory_used_megabytes{service_id=\"$service_id\"})",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_memory_util{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "D"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_disk_read_kilobytes{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "E"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_disk_write_kilobytes{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "F"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_network_receive_bytes{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "G"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${data_source}"
          },
          "editorMode": "code",
          "expr": "avg by(node_ip) (avg_over_time(ma_container_network_transmit_bytes{service_id=\"$service_id\"}[$__interval]))",
          "format": "table",
          "hide": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "H"
        }
      ],
      "title": "CPU&内存&磁盘&网络使用概要",
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Value": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #A": {
                "aggregations": [
                  "max"
                ],
                "operation": "aggregate"
              },
              "Value #B": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #C": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #D": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #E": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #F": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #G": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "Value #H": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              },
              "node_ip": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value #A (max)": "可用CPU核数",
              "Value #B (mean)": "CPU平均利用率",
              "Value #C (mean)": "可用内存",
              "Value #D (mean)": "内存平均利用率",
              "Value #E (mean)": "磁盘IO/Read平均速率",
              "Value #F (mean)": "磁盘IO/Write平均速率",
              "Value #G (mean)": "网络IO/Receive平均速率",
              "Value #H (mean)": "网络IO/Send平均速率",
              "node_ip": "节点IP"
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "cn-north-9_main",
          "value": "cn-north-9_main"
        },
        "hide": 0,
        "includeAll": false,
        "label": "data_source",
        "multi": false,
        "name": "data_source",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {
          "selected": false,
          "text": "fcf3ac92-3ac8-4335-889d-7a0e82058dfb",
          "value": "fcf3ac92-3ac8-4335-889d-7a0e82058dfb"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${data_source}"
        },
        "definition": "ma_container_cpu_limit_core",
        "hide": 0,
        "includeAll": false,
        "label": "service_id",
        "multi": false,
        "name": "service_id",
        "options": [],
        "query": {
          "query": "ma_container_cpu_limit_core",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "/.*service_id=\"([^\"]*).*/",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "hide": 2,
        "label": "scrape_interval",
        "name": "scrape_interval",
        "query": "10s",
        "skipUrlSync": false,
        "type": "constant"
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "ModelArts-Task-View",
  "uid": "-b1bPyL4k",
  "version": 188,
  "weekStart": "",
  "gnetId": 18604
}