Grafana dashboard: SAE Application Overview
Description: 阿里云SAE应用全局大盘


{
  "__inputs": [
    {
      "name": "DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128",
      "label": "sae",
      "description": "SAE数据源 cloud-product-prometheus_{reigonId}_sae_{userId}",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128",
      "label": "arms",
      "description": "ARMS数据源 arms_metrics_{reigonId}_cloud_shenzhen_{userId}",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT",
      "label": "sls",
      "description": "SLS数据源 cn-shenzhen-aliyun-product-data-{userId}-{reigonId}-sae_event",
      "type": "datasource",
      "pluginId": "aliyun-log-service-datasource",
      "pluginName": "log-service-datasource"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "datasource",
      "id": "aliyun-log-service-datasource",
      "name": "log-service-datasource",
      "version": "2.26"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.0.8"
    },
    {
      "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": "datasource",
          "uid": "grafana"
        },
        "enable": false,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "tags": [],
        "type": "dashboard"
      }
    ]
  },
  "description": "阿里云SAE应用全局大盘",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 18555,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": {
        "type": "prometheus",
        "uid": "0VPlfDK4k"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 107,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "0VPlfDK4k"
          },
          "refId": "A"
        }
      ],
      "title": "概览",
      "type": "row"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 0,
        "y": 1
      },
      "id": 204,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "count(count by (appId)(cpu{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}))",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "range": false,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "应用数",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 2,
        "y": 1
      },
      "id": 206,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "count(count by (instanceId)(cpu{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}))",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "range": false,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "实例数",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 4,
        "y": 1
      },
      "id": 197,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "count(count by (appId)(cpu{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"} > 80))",
          "instant": true,
          "logsPerPage": 100,
          "query": "* | select count(*) as c, __time__-__time__%60 as t group by t",
          "range": false,
          "refId": "A",
          "xcol": "t",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "CPU使用率超过80%",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 7,
        "y": 1
      },
      "id": 198,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "count(count by (appId)(memoryPercent{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"} > 80))",
          "instant": true,
          "logsPerPage": 100,
          "query": "* | select count(*) as c, __time__-__time__%60 as t group by t",
          "range": false,
          "refId": "A",
          "xcol": "t",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "内存使用率超过80%",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 10,
        "y": 1
      },
      "id": 199,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "count(count by (appId)(diskPercent{product=\"sae_infrastructure\",workload=\"app\"} > 80))",
          "instant": true,
          "logsPerPage": 100,
          "query": "* | select count(*) as c, __time__-__time__%60 as t group by t",
          "range": false,
          "refId": "A",
          "xcol": "t",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "磁盘使用率超过80%",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 13,
        "y": 1
      },
      "id": 200,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(sum by (pid) (sum_over_time(arms_app_requests_error_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range])))",
          "instant": true,
          "logsPerPage": 100,
          "query": "* | select count(*) as c, __time__-__time__%60 as t group by t",
          "range": false,
          "refId": "A",
          "xcol": "t",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "错误数",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 17,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 1
      },
      "id": 202,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "expr": "sum(app_replicas_count{})",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "expr": "sum(app_available_replicas_count{})",
          "hide": false,
          "refId": "B"
        }
      ],
      "title": "实例数趋势图",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "Time"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "sum(app_available_replicas_count{})": "当前实例数",
              "sum(app_replicas_count{})": "目标实例数"
            }
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              }
            ]
          },
          "unit": "core"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 0,
        "y": 4
      },
      "id": 207,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(sum by (instanceId)(cpuCore{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}))",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "range": false,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "CPU总量",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              }
            ]
          },
          "unit": "GB"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 2,
        "y": 4
      },
      "id": 208,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum(sum by (instanceId)(memoryTotalMB{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}))/1024",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "range": false,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "内存总量",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "aliyun-log-service-datasource",
        "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 4,
        "y": 4
      },
      "id": 209,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [],
          "fields": "/.*/",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level: Warning  and reason : Failed and kind : Pod and message : Unhealthy not (kind : Job or name : event* or name : manual*) | SELECT COUNT(DISTINCT app_id) as count  from log",
          "refId": "A",
          "xcol": "",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "健康检查失败",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "aliyun-log-service-datasource",
        "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 7,
        "y": 4
      },
      "id": 210,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [],
          "fields": "/.*/",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level: Warning  and reason : OOMKilling or reason : PodOOMKilling  not (kind : Job or name : event* or name : manual*) | SELECT COUNT(DISTINCT app_id) as count  from log",
          "refId": "A",
          "xcol": "",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "实例OOM",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "aliyun-log-service-datasource",
        "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 10,
        "y": 4
      },
      "id": 195,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [],
          "fields": "/.*/",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level: Warning   and reason : Backoff not (kind : Job or name : event* or name : manual*)  | SELECT COUNT(DISTINCT app_id) as count  from log",
          "refId": "A",
          "xcol": "",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "实例启动失败",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": {
        "type": "aliyun-log-service-datasource",
        "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 13,
        "y": 4
      },
      "id": 211,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [],
          "fields": "/.*/",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.8",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "logsPerPage": 100,
          "query": "* and level: Warning  and reason : Failed and message : ImagePullBackOff  not (kind : Job or name : event* or name : manual*) | SELECT COUNT(DISTINCT app_id) as count  from log",
          "refId": "A",
          "xcol": "t",
          "ycol": ""
        }
      ],
      "thresholds": "",
      "title": "镜像拉取失败",
      "type": "stat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 7
      },
      "id": 190,
      "panels": [],
      "title": "事件详情",
      "type": "row"
    },
    {
      "datasource": {
        "type": "datasource",
        "uid": "-- Mixed --"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "inspect": false
          },
          "decimals": 2,
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "异常原因"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.width",
                "value": 155
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "pid"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "应用名"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 126
              },
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "https://sae.console.aliyun.com/#/AppList/AppDetail?appId=${__data.fields.pid}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "命名空间"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 119
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "异常详情"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "应用ID"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 147
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "事件原因"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 229
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 16,
        "x": 0,
        "y": 8
      },
      "id": 212,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.0.8",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (count by (appId,name ,namespace) (cpu{product=\"sae_infrastructure\",tag=\"v2\", workload=\"app\"}),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "P"
        },
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level: Warning not (kind : Job or name : event* or name : manual*)  | SELECT DISTINCT app_id as pid,  reason,  max(message)  from log WHERE  app_id != '' GROUP by app_id, reason",
          "refId": "A",
          "xcol": "",
          "ycol": ""
        }
      ],
      "title": "异常事件汇总",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "pid"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Time 1": true,
              "Time 10": true,
              "Time 11": true,
              "Time 13": true,
              "Time 14": true,
              "Time 15": true,
              "Time 16": true,
              "Time 2": true,
              "Time 3": true,
              "Time 4": true,
              "Time 5": true,
              "Time 6": true,
              "Time 7": true,
              "Time 8": true,
              "Value": true,
              "Value #D": false,
              "Value #P": true,
              "appId": false,
              "appId 1": true,
              "appId 2": true,
              "appId 3": true,
              "appId 4": true,
              "appId 5": true,
              "appId 6": true,
              "appId 7": true,
              "appId 8": true,
              "namespace": false,
              "pid": false
            },
            "indexByName": {
              "Time": 5,
              "Value": 3,
              "_col2 response": 7,
              "appId": 0,
              "name": 1,
              "namespace": 2,
              "pid": 4,
              "reason response": 6
            },
            "renameByName": {
              "Time": "",
              "Time 10": "",
              "Time 11": "",
              "Time 15": "",
              "Value": "cpu使用率",
              "Value #A": "请求数",
              "Value #B": "错误数",
              "Value #C": "平均耗时",
              "Value #D": "请求数同比",
              "Value #E": "错误数同比",
              "Value #F": "耗时同比",
              "Value #G": "实例数",
              "Value #I": "内存使用率",
              "Value #J": "cpu总",
              "Value #K": "内存总",
              "Value #L": "磁盘总",
              "Value #M": "磁盘使用率",
              "Value #N": "接收字节",
              "Value #O": "发送字节",
              "Value 1": "CPU使用率",
              "Value 2": "内存使用率",
              "_col2 response": "事件详情",
              "_col2 response1": "异常详情",
              "appId": "应用ID",
              "appId 1": "",
              "appId 8": "",
              "lastTimestamp response1": "最近触发时间",
              "message response1": "异常事件",
              "name": "应用名",
              "namespace": "命名空间",
              "reason response": "事件原因",
              "reason response1": "异常原因",
              "rpc": "接口",
              "service": "应用名",
              "{service=\"sc-gateway\"}": ""
            }
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": false,
                "field": "事件原因"
              }
            ]
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "isNotNull",
                  "options": {}
                },
                "fieldName": "事件原因"
              }
            ],
            "match": "any",
            "type": "include"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "aliyun-log-service-datasource",
        "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 27,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 4,
            "pointSize": 20,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Normal事件"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.thresholdsStyle",
                "value": {
                  "mode": "line"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Warning事件"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.thresholdsStyle",
                "value": {
                  "mode": "line"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 8
      },
      "id": 213,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level: Warning  not (kind : Job or name : event* or name : manual*)  | select count(DISTINCT  app_id) as c, __time__-__time__%60 as t group by t",
          "refId": "A",
          "xcol": "t",
          "ycol": "c"
        },
        {
          "currentPage": 1,
          "datasource": {
            "type": "aliyun-log-service-datasource",
            "uid": "${DS_CN-BEIJING-ALIYUN-PRODUCT-DATA-1335361019749128-CN-BEIJING-SAE_EVENT}"
          },
          "hide": false,
          "logsPerPage": 100,
          "query": "* and level:Normal not (kind : Job or name : event* or name : manual*)  | select count(DISTINCT  app_id) as d, __time__-__time__%60 as t group by t",
          "refId": "B",
          "xcol": "t",
          "ycol": "d"
        }
      ],
      "title": "事件趋势图",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "time"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "c": "Warning事件",
              "c response1": "异常事件",
              "d": "Normal事件",
              "d response1": "正常事件",
              "time": ""
            }
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "datasource": {
        "type": "prometheus",
        "uid": "0VPlfDK4k"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "id": 99,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "0VPlfDK4k"
          },
          "refId": "A"
        }
      ],
      "title": "监控详情",
      "type": "row"
    },
    {
      "datasource": {
        "type": "datasource",
        "uid": "-- Mixed --"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "inspect": false,
            "minWidth": 50
          },
          "decimals": 2,
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value #A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "请求数"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 2
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "错误数"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 2
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "平均耗时"
              },
              {
                "id": "unit",
                "value": "s"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #D"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "yellow",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #E"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "yellow",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #F"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "yellow",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "noValue",
                "value": "0.00%"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "cpu使用率"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "percent"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "内存使用率"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 0.8
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "unit",
                "value": "percentunit"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "cpu总"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "内存总"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "unit",
                "value": "GB"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "请求数"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.width",
                "value": 90
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "错误数"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "decimals"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "请求数同比"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 96
              },
              {
                "id": "noValue",
                "value": "0.00%"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "错误数同比"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 94
              },
              {
                "id": "noValue",
                "value": "0.00%"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "磁盘使用率"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 0.8
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "unit",
                "value": "percentunit"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "接收字节"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "unit",
                "value": "binBps"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "发送字节"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "unit",
                "value": "binBps"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "cpu总"
            },
            "properties": [
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "unit",
                "value": "core"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "应用名"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "https://sae.console.aliyun.com/#/AppList/AppDetail?appId=${__data.fields.pid}"
                  }
                ]
              },
              {
                "id": "noValue",
                "value": "重启应用后展示"
              },
              {
                "id": "custom.width",
                "value": 134
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "pid"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "命名空间"
            },
            "properties": [
              {
                "id": "noValue",
                "value": "重启应用后展示"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "当前实例数"
            },
            "properties": [
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.width",
                "value": 62
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "目标实例数"
            },
            "properties": [
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": null
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.width",
                "value": 68
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 185,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "cpu使用率"
          }
        ]
      },
      "pluginVersion": "9.0.8",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "expr": "sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "expr": "(sum by (pid) (sum_over_time(arms_app_requests_error_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range])))or on () group by (pid) (arms_system_cpu_idle{})-1",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "expr": "(sum by (pid) (sum_over_time(arms_app_requests_seconds{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))/sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range])))",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "((sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range])) - \nsum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d)))\n/ \nsum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d)))or on () group by (pid) (arms_system_cpu_idle{})-1",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "D"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "((sum by (pid) (sum_over_time(arms_app_requests_error_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range])) - sum by (pid) (sum_over_time(arms_app_requests_error_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d )))\n/\nsum by (pid) (sum_over_time(arms_app_requests_error_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d )))or on () group by (pid) (arms_system_cpu_idle{})-1",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "E"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_ARMS_METRICS_CN-BEIJING_CLOUD_BEIJING_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "((sum by (pid) (sum_over_time(arms_app_requests_seconds{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))/sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))\n-\nsum by (pid) (sum_over_time(arms_app_requests_seconds{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))/sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d )))\n/\nsum by (pid) (sum_over_time(arms_app_requests_seconds{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range]))/sum by (pid) (sum_over_time(arms_app_requests_count{callType=~\"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$\",prpc=\"__all__\",ppid=\"__all__\",endpoint=\"__all__\",destId=\"__all__\",rpc!=\"__all__\"}[$__range] offset 1d )))or on () group by (pid) (arms_system_cpu_idle{})-1",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "F"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)((app_replicas_count{}) > 0 ),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "G"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(cpu{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "H"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(memoryPercent{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")/100",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "I"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(cpuCore{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "J"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(memoryTotalMB{product=\"sae_infrastructure\",tag=\"v2\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")/1024",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "K"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(cpuCore{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": true,
          "instant": true,
          "range": false,
          "refId": "L"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(diskUsed{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")\n/\nlabel_replace (avg by (appId)(avg_over_time(diskTotal{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "M"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(netRecv{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "N"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)(avg_over_time(netTran{product=\"sae_infrastructure\",workload=\"app\"}[59s])),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "O"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (count by (appId,name ,namespace) (cpu{product=\"sae_infrastructure\",tag=\"v2\", workload=\"app\"}),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "P"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_CLOUD-PRODUCT-PROMETHEUS_CN-BEIJING_SAE_1335361019749128}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "label_replace (avg by (appId)((app_available_replicas_count{}) ),\"pid\", \"$1\", \"appId\",\"(.*)\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "range": false,
          "refId": "Q"
        }
      ],
      "title": "应用汇总",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "pid"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Time 1": true,
              "Time 10": true,
              "Time 11": true,
              "Time 13": true,
              "Time 14": true,
              "Time 15": true,
              "Time 16": true,
              "Time 2": true,
              "Time 3": true,
              "Time 4": true,
              "Time 5": true,
              "Time 6": true,
              "Time 7": true,
              "Time 8": true,
              "Value #D": false,
              "Value #P": true,
              "appId": false,
              "appId 1": false,
              "appId 10": true,
              "appId 2": true,
              "appId 3": true,
              "appId 4": true,
              "appId 5": true,
              "appId 6": true,
              "appId 7": true,
              "appId 8": true,
              "appId 9": true,
              "pid": false
            },
            "indexByName": {
              "Time 1": 12,
              "Time 10": 29,
              "Time 11": 31,
              "Time 12": 33,
              "Time 13": 35,
              "Time 14": 37,
              "Time 15": 39,
              "Time 16": 43,
              "Time 2": 13,
              "Time 3": 19,
              "Time 4": 22,
              "Time 5": 23,
              "Time 6": 24,
              "Time 7": 25,
              "Time 8": 26,
              "Time 9": 27,
              "Value #A": 15,
              "Value #B": 17,
              "Value #C": 20,
              "Value #D": 16,
              "Value #E": 18,
              "Value #F": 21,
              "Value #G": 4,
              "Value #H": 5,
              "Value #I": 7,
              "Value #J": 6,
              "Value #K": 8,
              "Value #M": 9,
              "Value #N": 10,
              "Value #O": 11,
              "Value #P": 40,
              "Value #Q": 3,
              "appId 1": 0,
              "appId 10": 44,
              "appId 2": 28,
              "appId 3": 30,
              "appId 4": 32,
              "appId 5": 34,
              "appId 6": 36,
              "appId 7": 38,
              "appId 8": 41,
              "appId 9": 42,
              "name": 1,
              "namespace": 2,
              "pid": 14
            },
            "renameByName": {
              "Time": "",
              "Time 10": "",
              "Time 11": "",
              "Time 15": "",
              "Value": "cpu使用率",
              "Value #A": "请求数",
              "Value #B": "错误数",
              "Value #C": "平均耗时",
              "Value #D": "请求数同比",
              "Value #E": "错误数同比",
              "Value #F": "耗时同比",
              "Value #G": "目标实例数",
              "Value #H": "cpu使用率",
              "Value #I": "内存使用率",
              "Value #J": "cpu总",
              "Value #K": "内存总",
              "Value #L": "磁盘总",
              "Value #M": "磁盘使用率",
              "Value #N": "接收字节",
              "Value #O": "发送字节",
              "Value #Q": "当前实例数",
              "Value 1": "CPU使用率",
              "Value 2": "内存使用率",
              "appId": "应用ID",
              "appId 1": "应用id",
              "appId 8": "",
              "name": "应用名",
              "namespace": "命名空间",
              "rpc": "接口",
              "service": "应用名",
              "{service=\"sc-gateway\"}": ""
            }
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "greater",
                  "options": {
                    "value": 0
                  }
                },
                "fieldName": "目标实例数"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "cpu使用率"
              }
            ]
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": "10s",
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "SAE Application Overview",
  "uid": "VH0lfu14z",
  "version": 6,
  "weekStart": ""
}