Grafana dashboard: Kubernetes Pod Overview
Description: Kubernetes Pod资源监控统计

## November 8th 2021, 5:10 PM

**本次更新内容如下**

1、修正以Pod单位监控粒度（CPU/MEM/DISK/IOPS等指标）

2、新增磁盘IO等待耗时Dashboard

## November 13th 2021, 8:03 PM

本次更新，修改了 Pod CPU使用率的表格式
sum(irate(container_cpu_usage_seconds_total{container="$Container",instance="$Node",pod="$Pod"}[5m])*100)by(pod) / sum(kube_pod_container_resource_limits_cpu_cores{container="$Container",node="$Node",pod="$Pod"})by(pod)

{
  "__inputs": [],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.11"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.6.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "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": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 13787,
  "graphTooltip": 2,
  "id": null,
  "iteration": 1636804933155,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 27,
      "panels": [],
      "repeat": "DataSource",
      "title": "Realtime statistics",
      "type": "row"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 42,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "[ $Container ] -  资源使用实时展示",
      "type": "text"
    },
    {
      "aliasColors": {
        "Cache": "#7C2EA3",
        "RSS": "#73BF69",
        "Require": "#FFB357",
        "Usage": "#B877D9",
        "Working": "#96D98D"
      },
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "$DataSource",
      "decimals": null,
      "description": "容器内存使用实时统计",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fontSize": "80%",
      "format": "bytes",
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 0,
        "y": 2
      },
      "id": 20,
      "interval": null,
      "legend": {
        "header": "",
        "percentage": false,
        "show": true,
        "sort": "current",
        "sortDesc": false,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "pieType": "pie",
      "strokeWidth": "",
      "targets": [
        {
          "expr": "sum(container_memory_max_usage_bytes{container=~\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "Usage",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(container_memory_rss{container=~\"$Container\",instance=\"$Node\"})",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "RSS",
          "queryType": "randomWalk",
          "refId": "B"
        },
        {
          "expr": "sum(container_memory_cache{container=~\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "Cache",
          "queryType": "randomWalk",
          "refId": "C"
        },
        {
          "expr": "sum(container_memory_working_set_bytes{container=~\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "Working",
          "queryType": "randomWalk",
          "refId": "D"
        },
        {
          "expr": "container_spec_memory_reservation_limit_bytes{container=~\"$Container\",instance=\"$Node\"}",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "Max_Usage",
          "queryType": "randomWalk",
          "refId": "E"
        },
        {
          "expr": "sum(kube_pod_container_resource_requests_memory_bytes{container=~\"$Container\",node=\"$Node\"})",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "Require",
          "queryType": "randomWalk",
          "refId": "F"
        },
        {
          "expr": "kube_pod_container_resource_limits_memory_bytes{container=~\"$Container\",node=\"$Node\"}",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "Limit",
          "queryType": "randomWalk",
          "refId": "G"
        }
      ],
      "title": "Mem Usage Statistics",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "semi-dark-red",
                "value": 10
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 6,
        "y": 2
      },
      "id": 13,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value"
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "avg(container_cpu_load_average_10s{container=\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "title": "load 10s",
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": null,
            "displayMode": "color-background",
            "filterable": false,
            "width": 115
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "value"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 121
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 9,
        "y": 2
      },
      "id": 14,
      "interval": "",
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "container_spec_cpu_shares{container=~\"$Container\",instance=\"$Node\"}",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "container_spec_cpu_period{container=~\"$Container\",instance=\"$Node\"}",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "B"
        },
        {
          "expr": "container_spec_cpu_quota{container=~\"$Container\",instance=\"$Node\"}",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "C"
        },
        {
          "expr": "sum(kube_pod_container_resource_requests_cpu_cores{container=\"$Container\",node=\"$Node\"})",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "request",
          "queryType": "randomWalk",
          "refId": "E"
        },
        {
          "expr": "sum(kube_pod_container_resource_limits_cpu_cores{container=\"$Container\",node=\"$Node\"})",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "limit",
          "queryType": "randomWalk",
          "refId": "D"
        },
        {
          "expr": "machine_cpu_cores{instance=\"$Node\"}",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "total",
          "queryType": "randomWalk",
          "refId": "F"
        }
      ],
      "title": "CPU Quota",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "lastNotNull"
            ]
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "Field": "resource",
              "Last (not null)": "value"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "aliasColors": {
        "/dev/vda1: usage": "rgb(17, 113, 167)"
      },
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "$DataSource",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fontSize": "80%",
      "format": "bytes",
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 12,
        "y": 2
      },
      "id": 22,
      "interval": null,
      "legend": {
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "pieType": "pie",
      "strokeWidth": "",
      "targets": [
        {
          "expr": "sum(container_fs_usage_bytes{container=\"$Container\",instance=\"$Node\"})by(device)",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "{{device}}: usage",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_fs_reads_bytes_total{container=\"$Container\",instance=\"$Node\"}[5m]))by(device)",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "{{device}}: read",
          "queryType": "randomWalk",
          "refId": "B"
        },
        {
          "expr": "sum(irate(container_fs_writes_bytes_total{container=\"$Container\",instance=\"$Node\"}[5m]))by(device)",
          "instant": false,
          "interval": "",
          "legendFormat": "{{device}}: wirte",
          "queryType": "randomWalk",
          "refId": "C"
        }
      ],
      "title": "Disk Usage",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "容器在1分钟内流出的平均速率",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 2,
          "mappings": [
            {
              "id": 0,
              "op": "=",
              "text": "0",
              "type": 1,
              "value": "null"
            }
          ],
          "max": 100000000,
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#6ED0E0",
                "value": 10000000
              },
              {
                "color": "semi-dark-red",
                "value": 20000000
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 18,
        "y": 2
      },
      "id": 17,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(irate(container_network_transmit_bytes_total{pod=~\"$Pod\",instance=\"$Node\",interface=\"eth0\"}[2m]))by(pod)",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_network_transmit_bytes_total{pod=~\"$Pod\",instance=\"$Node\",interface=\"eth0\"}[2m]))by(pod)",
          "hide": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        }
      ],
      "title": "transmit_rate(1m)",
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "容器在1分钟内接收的平均速率",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 2,
          "mappings": [
            {
              "id": 0,
              "op": "=",
              "text": "0",
              "type": 1,
              "value": "null"
            }
          ],
          "max": 100000000,
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#6ED0E0",
                "value": 10000000
              },
              {
                "color": "semi-dark-red",
                "value": 20000000
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 21,
        "y": 2
      },
      "id": 44,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(irate(container_network_receive_bytes_total{pod=~\"$Pod\",instance=\"$Node\",interface=\"eth0\"}[2m]))by(pod)",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "title": "receive_rate(1m)",
      "type": "gauge"
    },
    {
      "aliasColors": {
        "System": "#F2CC0C",
        "User": "#E02F44"
      },
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "$DataSource",
      "decimals": null,
      "description": "容器CPU使用实时统计",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fontSize": "80%",
      "format": "percent",
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 6,
        "y": 7
      },
      "id": 39,
      "interval": null,
      "legend": {
        "header": "",
        "percentage": false,
        "show": true,
        "sideWidth": null,
        "sort": null,
        "sortDesc": null,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "pieType": "pie",
      "pluginVersion": "7.3.4",
      "strokeWidth": "",
      "targets": [
        {
          "expr": "sum(irate(container_cpu_usage_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100)",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "Total",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(irate(container_cpu_user_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100)",
          "hide": false,
          "instant": true,
          "interval": "10s",
          "legendFormat": "User",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum(irate(container_cpu_system_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100)",
          "hide": false,
          "instant": true,
          "interval": "10s",
          "legendFormat": "System",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "100 - (sum(irate(container_cpu_system_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100) + sum(irate(container_cpu_user_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100))",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "idel",
          "refId": "D"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU Usage Statistics",
      "transformations": [],
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "$DataSource",
      "description": "容器在1分钟内网络数据包的传输统计",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fontSize": "80%",
      "format": "none",
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 18,
        "y": 7
      },
      "id": 23,
      "interval": null,
      "legend": {
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "expr": "sum(container_network_receive_packets_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "receive: total",
          "refId": "A"
        },
        {
          "expr": "sum(container_network_receive_errors_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "receive: error",
          "refId": "B"
        },
        {
          "expr": "sum(container_network_receive_packets_dropped_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "receive: dropped",
          "refId": "C"
        },
        {
          "expr": "sum(container_network_transmit_packets_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "transmit: total",
          "refId": "E"
        },
        {
          "expr": "sum(container_network_transmit_errors_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "transmit: error",
          "refId": "F"
        },
        {
          "expr": "sum(container_network_transmit_packets_dropped_total{pod=~\"$Container.+\",instance=\"$Node\",interface=\"eth0\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "transmit: dropped",
          "refId": "D"
        }
      ],
      "title": "network packet in/out(1m)",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "Number of memory usage hits limits  \n内存使用命中limits的次数",
      "fieldConfig": {
        "defaults": {
          "mappings": [
            {
              "id": 0,
              "op": "=",
              "text": "N/A",
              "type": 1,
              "value": "null"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 0,
        "y": 9
      },
      "id": 11,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.11",
      "tableColumn": "",
      "targets": [
        {
          "expr": "container_memory_failcnt{container_label_MARATHON_APP_ID=\"$Container_name\",instance=\"$Host:8080\"}",
          "format": "time_series",
          "hide": true,
          "intervalFactor": 1,
          "legendFormat": "",
          "refId": "A"
        },
        {
          "expr": "sum(container_memory_failcnt{container=~\"$Container\",instance=\"$Node\"})",
          "hide": false,
          "refId": "B"
        }
      ],
      "title": "Memory_failcnt",
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "columns": [],
      "datasource": "$DataSource",
      "description": "容器在10分钟内新增申请内存失败的次数\n\nThe following statistics are only available by kernels from 2.6 \npgfault     –  Number of page faults the system has made per second (minor + major)  \npgmajfault  –  Number of major faults per second the system required loading a memory page from disk",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgb(82, 145, 152)",
            "mode": "fixed"
          },
          "custom": {
            "align": null,
            "displayMode": "color-background",
            "filterable": false
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "light-green",
                "value": null
              },
              {
                "color": "light-yellow",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "string"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "from": "",
                    "id": 1,
                    "text": "pgfault",
                    "to": "",
                    "type": 1,
                    "value": "Value #B"
                  },
                  {
                    "from": "",
                    "id": 2,
                    "text": "pgmajfault",
                    "to": "",
                    "type": 1,
                    "value": "Value #D"
                  },
                  {
                    "from": "",
                    "id": 3,
                    "text": "pgfault",
                    "to": "",
                    "type": 1,
                    "value": "Value #C"
                  },
                  {
                    "from": "",
                    "id": 4,
                    "text": "pgmajfault",
                    "to": "",
                    "type": 1,
                    "value": "Value #A"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "thresholds"
                }
              },
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Metric"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 116
              }
            ]
          }
        ]
      },
      "fontSize": "100%",
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 3,
        "y": 9
      },
      "id": 38,
      "links": [],
      "options": {
        "frameIndex": 1,
        "showHeader": true,
        "sortBy": []
      },
      "pageSize": null,
      "pluginVersion": "7.5.11",
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Time",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "avg(increase(container_memory_failures_total{container=~\"$Container\",failure_type=\"pgfault\",instance=\"$Node\"}[10m]))",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "pgfault",
          "queryType": "randomWalk",
          "refId": "C"
        },
        {
          "expr": "avg(increase(container_memory_failures_total{container=~\"$Container\",failure_type=\"pgmajfault\",instance=\"$Node\"}[10m]))",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "pgmajfault",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "avg(container_memory_failures_total{container=~\"$Container\",failure_type=\"pgfault\",instance=\"$Node\"})",
          "format": "table",
          "hide": true,
          "instant": true,
          "interval": "",
          "legendFormat": "pgfault",
          "queryType": "randomWalk",
          "refId": "B"
        },
        {
          "expr": "avg(container_memory_failures_total{container=~\"$Container\",failure_type=\"pgmajfault\",instance=\"$Node\"})",
          "format": "table",
          "hide": true,
          "instant": true,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "pgmajfault",
          "queryType": "randomWalk",
          "refId": "D"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Memory_failures",
      "transform": "timeseries_to_rows",
      "transformations": [
        {
          "id": "seriesToRows",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Metric",
                "Value",
                "Time"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        },
        {
          "id": "merge",
          "options": {}
        }
      ],
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "磁盘读写数据统计",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": null,
            "displayMode": "color-background",
            "filterable": false,
            "width": 115
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "light-green",
                "value": null
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Metric"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 115
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 121
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 12,
        "y": 9
      },
      "id": 16,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(container_fs_reads_bytes_total{container=\"$Container\",instance=\"$Node\",device=\"$device\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "read_bytes",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(container_fs_writes_bytes_total{container=\"$Container\",instance=\"$Node\",device=\"$device\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "wirte_bytes",
          "refId": "B"
        }
      ],
      "title": "disk R/W size",
      "transformations": [
        {
          "id": "seriesToRows",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Metric",
                "Value"
              ]
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "datasource": "$DataSource",
      "description": "当前I/O队列个数及请求等待时间",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgb(82, 145, 152)",
            "mode": "fixed"
          },
          "custom": {
            "align": null,
            "displayMode": "color-background",
            "filterable": false,
            "width": 115
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "light-green",
                "value": null
              },
              {
                "color": "semi-dark-yellow",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "thresholds"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 15,
        "y": 9
      },
      "id": 15,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "avg(container_fs_io_current{container=\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "IO Count",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "avg(container_fs_io_time_seconds_total{container=\"$Container\",instance=\"$Node\"})",
          "instant": true,
          "interval": "",
          "legendFormat": "IO Time",
          "refId": "B"
        }
      ],
      "title": "disk io",
      "transformations": [
        {
          "id": "seriesToRows",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Metric",
                "Value"
              ]
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": null,
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "rgba(35, 134, 162, 0.62)",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Restarts"
            },
            "properties": [
              {
                "id": "unit",
                "value": "none"
              },
              {
                "id": "custom.width",
                "value": 174
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 137
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Node"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 167
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 379
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod_start_time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsIso"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Container_start_time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsIsoNoDateIfToday"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 3,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "id": 48,
      "options": {
        "frameIndex": 1,
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(kube_pod_start_time{namespace=\"$NameSpace\",pod=\"$Pod\"}*1000)by(namespace,pod)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "C"
        },
        {
          "expr": "sum(container_start_time_seconds{namespace=\"$NameSpace\",container=\"$Container\",pod=\"$Pod\",instance=\"$Node\"}*1000)by(namespace,container,pod,__name__,instance)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(kube_pod_container_status_restarts_total{namespace=\"$NameSpace\",pod=\"$Pod\"})by(namespace,pod)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "queryType": "randomWalk",
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": true,
            "mode": "reduceFields",
            "reducers": [
              "last"
            ]
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Time",
                "namespace",
                "pod",
                "Value #C",
                "container",
                "instance",
                "Value #A",
                "Value #B"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "Time": 0,
              "Value #A": 6,
              "Value #C": 5,
              "container": 3,
              "instance": 2,
              "namespace": 1,
              "pod": 4
            },
            "renameByName": {
              "Value #A": "Container_start_time",
              "Value #B": "Restarts",
              "Value #C": "Pod_start_time",
              "container": "Container",
              "instance": "Node",
              "pod": "Pod"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": null,
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [
            {
              "from": "",
              "id": 1,
              "text": "Container_file_descriptors",
              "to": "",
              "type": 1,
              "value": "container_file_descriptors"
            },
            {
              "from": "",
              "id": 2,
              "text": "Container_threads",
              "to": "",
              "type": 1,
              "value": "container_threads"
            },
            {
              "from": "",
              "id": 3,
              "text": "Container_sockets",
              "to": "",
              "type": 1,
              "value": "container_sockets"
            },
            {
              "from": "",
              "id": 4,
              "text": "Container_processes",
              "to": "",
              "type": 1,
              "value": "container_processes"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "rgba(35, 134, 162, 0.62)",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.width",
                "value": 130
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Node"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 129
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Metric"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 186
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 201
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 17
      },
      "id": 43,
      "links": [],
      "options": {
        "frameIndex": 0,
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Value"
          }
        ]
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(container_file_descriptors{container=\"$Container\",instance=\"$Node\"})by(__name__,pod,instance)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "file descriptior",
          "refId": "A"
        },
        {
          "expr": "sum(container_sockets{container=\"$Container\",instance=\"$Node\"})by(__name__,pod,instance)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "sockets",
          "refId": "B"
        },
        {
          "expr": "sum(container_processes{container=\"$Container\",instance=\"$Node\"})by(__name__,pod,instance)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "processes",
          "refId": "C"
        },
        {
          "expr": "sum(container_threads{container=\"$Container\",instance=\"$Node\"})by(__name__,pod,instance)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "threads",
          "refId": "D"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": true,
            "mode": "reduceFields",
            "reducers": [
              "lastNotNull"
            ]
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Value",
            "mode": "reduceRow",
            "reduce": {
              "include": [],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "__name__",
                "instance",
                "pod",
                "Value",
                "Time"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "__name__": "Metric",
              "instance": "Node",
              "pod": "Pod"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": null,
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [
            {
              "from": "",
              "id": 1,
              "text": "Container_status_running",
              "to": "",
              "type": 1,
              "value": "kube_pod_container_status_running"
            },
            {
              "from": "",
              "id": 2,
              "text": "Container_status_ready",
              "to": "",
              "type": 1,
              "value": "kube_pod_container_status_ready"
            },
            {
              "from": "",
              "id": 3,
              "text": "Container_status_terminated",
              "to": "",
              "type": 1,
              "value": "kube_pod_container_status_terminated"
            },
            {
              "from": "",
              "id": 4,
              "text": "Container_status_waiting",
              "to": "",
              "type": 1,
              "value": "kube_pod_container_status_waiting"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Value"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "rgba(35, 134, 162, 0.62)",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 200
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Node"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 115
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 315
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Metric"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 292
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "pod"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 299
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 17
      },
      "id": 46,
      "links": [],
      "options": {
        "frameIndex": 0,
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Value"
          }
        ]
      },
      "pluginVersion": "7.5.11",
      "targets": [
        {
          "expr": "sum(kube_pod_container_status_ready{container=\"$Container\"})by(__name__,container)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "ready",
          "refId": "A"
        },
        {
          "expr": "sum(kube_pod_container_status_running{container=\"$Container\"})by(__name__,container)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "running",
          "refId": "B"
        },
        {
          "expr": "sum(kube_pod_container_status_waiting{container=\"$Container\"})by(__name__,container)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "waiting",
          "refId": "C"
        },
        {
          "expr": "sum(kube_pod_container_status_terminated{container=\"$Container\"})by(__name__,container)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "terminated",
          "refId": "D"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": true,
            "mode": "reduceFields",
            "reducers": [
              "lastNotNull"
            ]
          }
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Value",
            "mode": "reduceRow",
            "reduce": {
              "include": [],
              "reducer": "lastNotNull"
            }
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Time",
                "__name__",
                "container",
                "Value"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "__name__": "Metric",
              "container": "Container"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 23
      },
      "id": 25,
      "panels": [],
      "title": "Container usage chart",
      "type": "row"
    },
    {
      "aliasColors": {
        "dmm-device-service": "#64b0c8",
        "dmm-player-service": "#e0752d",
        "sit-rabbitmq-0": "semi-dark-blue",
        "sit-rabbitmq-1": "super-light-yellow",
        "sit01-coll-urge-b6b77c78-qwlfk": "rgba(47, 30, 81, 0.73)"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 24
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:526",
          "alias": "/.+/",
          "color": "#1f78c1"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(irate(container_cpu_usage_seconds_total{container=\"$Container\",instance=\"$Node\",pod=\"$Pod\"}[5m])*100)by(pod) / sum(kube_pod_container_resource_limits_cpu_cores{container=\"$Container\",node=\"$Node\",pod=\"$Pod\"})by(pod)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}}",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "irate(container_cpu_user_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100",
          "hide": true,
          "interval": "",
          "legendFormat": "user {{container}}: {{instance}}",
          "queryType": "randomWalk",
          "refId": "B"
        },
        {
          "expr": "irate(container_cpu_usage_seconds_total{container=\"$Container\",instance=\"$Node\"}[5m])*100",
          "hide": true,
          "interval": "",
          "legendFormat": "{{pod}}",
          "queryType": "randomWalk",
          "refId": "C"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "cpu usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:537",
          "decimals": 2,
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:538",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": true,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "dmm-device-service": "#64b0c8",
        "dmm-player-service": "#e0752d",
        "sit01-nfsp-service-6657767d6f-k767j": "light-yellow"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 8,
        "y": 24
      },
      "hiddenSeries": false,
      "id": 40,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:511",
          "alias": "/.+/",
          "color": "rgb(30, 170, 209)"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(container_memory_usage_bytes{container=\"$Container\",instance=\"$Node\",pod=\"$Pod\"}/container_spec_memory_limit_bytes{container=\"$Container\",instance=\"$Node\",pod=\"$Pod\"}*100)by(pod)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}}",
          "refId": "A"
        },
        {
          "expr": "kube_pod_container_resource_limits_memory_bytes{container=\"$Container\",node=\"$Node\"}",
          "hide": true,
          "interval": "",
          "legendFormat": "limit",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "memory usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:537",
          "decimals": 2,
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:538",
          "decimals": null,
          "format": "short",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "dev01-trade-service-c457d9d67-sw9bs: receive": "#0a50a1",
        "dev02-coll-service-65c6595cf8-hc66c: receive": "#0a50a1",
        "dev02-coll-service-65c6595cf8-hc66c: transmit": "#e24d42",
        "receive_rate：cali0": "#64b0c8",
        "sit-rabbitmq-0: receive": "rgba(110, 138, 184, 0.95)",
        "sit-rabbitmq-0: transmit": "rgb(129, 180, 69)",
        "sit-rabbitmq-1: transmit": "semi-dark-purple",
        "sit01-nfsp-gateway-6c8bc76bf6-g68s8: receive": "rgba(110, 138, 184, 0.95)",
        "sit02-activemq-0: transmit": "semi-dark-purple",
        "transmit_rate：cali0": "#5195ce"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 16,
        "y": 24
      },
      "hiddenSeries": false,
      "id": 28,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:1064",
          "alias": "/receive/",
          "color": "#0a50a1",
          "transform": "negative-Y"
        },
        {
          "$$hashKey": "object:456",
          "alias": "/transmit/",
          "color": "#e24d42"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(container_network_transmit_bytes_total{pod=~\"$Pod\",instance=\"$Node\",interface=\"eth0\"}[1m]))by(pod)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}}: transmit",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_network_receive_bytes_total{pod=~\"$Pod\",instance=\"$Node\",interface=\"eth0\"}[1m]))by(pod)",
          "interval": "",
          "legendFormat": "{{pod}}: receive",
          "queryType": "randomWalk",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "network usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1071",
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:1072",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "/dev/vdd: read": "light-yellow",
        "/dev/vde: write": "light-yellow"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 34,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:128",
          "alias": "/write/",
          "color": "#e5ac0e",
          "transform": "negative-Y"
        },
        {
          "$$hashKey": "object:479",
          "alias": "/read/",
          "color": "rgb(80, 110, 185)"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(container_fs_reads_bytes_total{container=~\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[5m]))by(device,pod)",
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: read",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_fs_writes_bytes_total{container=~\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[5m]))by(device,pod)",
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: write",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "disk R/W rate",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:135",
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:136",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "/dev/vda: read_iops": "rgb(170, 61, 218)",
        "/dev/vdc: write_iops": "rgba(50, 66, 91, 0.95)",
        "/dev/vdd: read_iops": "rgb(0, 0, 0)",
        "/dev/vdd: write_iops": "rgb(137, 87, 255)",
        "read_iops": "#f9d9f9",
        "write_iops": "#1f78c1"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "description": "容器一分钟平均完成的IO次数",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 8,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 36,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:1182",
          "alias": "/write_iops/",
          "color": "#e5ac0e",
          "transform": "negative-Y"
        },
        {
          "$$hashKey": "object:1868",
          "alias": "/read_iops/"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(container_fs_reads_total{container=\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[2m]))by(device,pod)",
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: read_iops",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_fs_writes_total{container=\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[2m]))by(device,pod)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: write_iops",
          "queryType": "randomWalk",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "disk R/W iops",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:380",
          "format": "iops",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:381",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$DataSource",
      "description": "容器在1分钟内平均每次IO等待的时间",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 16,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 37,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.11",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(container_fs_write_seconds_total{container=\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[2m]))by(device,pod)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: write_iops",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "expr": "sum(irate(container_fs_read_seconds_total{container=\"$Container\",pod=\"$Pod\",instance=\"$Node\",device=\"$device\"}[2m]))by(device)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{pod}} - {{device}}: read_iops",
          "queryType": "randomWalk",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "disk IO time",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1504",
          "format": "ms",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:1505",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "生产环境",
          "value": "生产环境"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "DataSource",
        "multi": false,
        "name": "DataSource",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$DataSource",
        "definition": "label_values(kube_namespace_created,namespace)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "NameSpace",
        "options": [],
        "query": {
          "query": "label_values(kube_namespace_created,namespace)",
          "refId": "生产环境-NameSpace-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$DataSource",
        "definition": "label_values(kube_pod_container_info{namespace=~\"$NameSpace\"},container)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Container",
        "options": [],
        "query": {
          "query": "label_values(kube_pod_container_info{namespace=~\"$NameSpace\"},container)",
          "refId": "生产环境-Container-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$DataSource",
        "definition": "label_values(kube_pod_container_info{container=~\"$Container\",namespace=~\"$NameSpace\"},pod)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Pod",
        "options": [],
        "query": {
          "query": "label_values(kube_pod_container_info{container=~\"$Container\",namespace=~\"$NameSpace\"},pod)",
          "refId": "生产环境-Pod-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$DataSource",
        "definition": "label_values(kube_pod_info{pod=~\"$Pod\"},node)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Node",
        "options": [],
        "query": {
          "query": "label_values(kube_pod_info{pod=~\"$Pod\"},node)",
          "refId": "生产环境-Node-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$DataSource",
        "definition": "label_values(container_fs_reads_bytes_total{container=~\"$Container\",instance=\"$Node\"},device)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "device",
        "options": [],
        "query": {
          "query": "label_values(container_fs_reads_bytes_total{container=~\"$Container\",instance=\"$Node\"},device)",
          "refId": "生产环境-device-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Kubernetes Pod Overview",
  "uid": "hkd21PUmk",
  "version": 210,
  "description": "Kubernetes Pod资源监控统计"
}