Grafana dashboard: Hadoop-hdfs巡检
Description: Hadoop-hdfs日常巡检

Hadoop-hdfs巡检仪表盘，分为功能监控和核心指标监控，包含容量，流量，错误，延迟等核心指标，满足日常巡检需求

{
  "__inputs": [
    {
      "name": "DS_FUNC_MONITOR",
      "label": "func_monitor",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "DS_COREMETRICS",
      "label": "coremetrics",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.3.4"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 9281,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1543569591526,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 79,
      "panels": [],
      "title": "功能性监控（集群健康状态）",
      "type": "row"
    },
    {
      "alert": {
        "conditions": [
          {
            "evaluator": {
              "params": [
                50
              ],
              "type": "lt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "10m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "frequency": "60s",
        "handler": 1,
        "name": "hdfs健康状态 alert",
        "noDataState": "no_data",
        "notifications": []
      },
      "aliasColors": {
        "hdfs.read": "#629e51",
        "hdfs.status": "#e5ac0e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_FUNC_MONITOR}",
      "fill": 0,
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 75,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster-datanode",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"status\") FROM \"hdfs\" WHERE $timeFilter and cluster =~ /$cluster/ group by time(10m),cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "lt",
          "value": 50
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "hdfs健康状态",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": "100",
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hdfs.cost": "#ba43a9",
        "hdfs.delete": "#614d93",
        "hdfs.write": "#447ebc"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_FUNC_MONITOR}",
      "fill": 1,
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 77,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster-datanode",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"cost\") FROM \"hdfs\" WHERE $timeFilter  and cluster =~ /$cluster/   group by time(10m),cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "一次完整的读写删文件耗时（ms）",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 7
      },
      "id": 81,
      "panels": [],
      "title": "集群状态核心指标总体概览",
      "type": "row"
    },
    {
      "alert": {
        "conditions": [
          {
            "evaluator": {
              "params": [
                75
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "5m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          },
          {
            "evaluator": {
              "params": [
                80
              ],
              "type": "gt"
            },
            "operator": {
              "type": "or"
            },
            "query": {
              "params": [
                "A",
                "5m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "frequency": "60s",
        "handler": 1,
        "name": "Panel Title alert",
        "noDataState": "no_data",
        "notifications": []
      },
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_COREMETRICS}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 90,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {}
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster-datanode",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "h",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"PercentUsed\") FROM \"hdfs\" WHERE  time>now() -10m and cluster =~ /$cluster/  GROUP BY cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "gt",
          "value": 75
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "存储空间使用率占比",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": true,
        "values": [
          "total"
        ]
      },
      "yaxes": [
        {
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-datanode": "#629e51",
        "hn-opendata-datanode": "#70dbed"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 8
      },
      "id": 98,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {}
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "count(check_disk{type=\"status\",service=~ \"($cluster)-datanode.*\"} > 0)  by (service) or  (count(check_disk{type=\"status\",service=~ \"($cluster)-datanode.*\"}) by (service) - count(check_disk{type=\"status\",service=~ \"($cluster)-datanode.*\"} <= 0) by (service))",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "interval": "1h",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "h",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"PercentUsed\") FROM \"hdfs\" WHERE  time>now() -10m GROUP BY cluster",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "集群磁盘读写失败的节点数量",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": true,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": "4",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": "4",
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "${DS_COREMETRICS}",
      "fontSize": "100%",
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 55,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": null,
        "desc": false
      },
      "styles": [
        {
          "alias": "",
          "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,
          "link": false,
          "mappingType": 1,
          "pattern": "Time",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "alias": "总文件数量（万）",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "#299c46",
            "#299c46"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "last",
          "thresholds": [],
          "type": "number",
          "unit": "none"
        },
        {
          "alias": "总block数量（万）",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "#299c46",
            "#299c46"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "last_1",
          "thresholds": [
            ""
          ],
          "type": "number",
          "unit": "none"
        },
        {
          "alias": "存活实例数量",
          "colorMode": "cell",
          "colors": [
            "#890f02",
            "#299c46",
            "#299c46"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "last_2",
          "thresholds": [
            "0"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Missing Block数量",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "rgba(237, 129, 40, 0.89)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "last_3",
          "thresholds": [
            "1"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "dead实例数量",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#890f02"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "last_4",
          "thresholds": [
            "1",
            "2"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "正在同步block数量",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "rgba(237, 129, 40, 0.89)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "last_5",
          "thresholds": [
            "1"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "正在下线实例数量",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#890f02"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "last_6",
          "thresholds": [
            "1",
            "30"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "堆内存使用率",
          "colorMode": "cell",
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "last_7",
          "thresholds": [
            "75",
            "90"
          ],
          "type": "number",
          "unit": "percentunit"
        },
        {
          "alias": "集群",
          "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": "cluster",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "TotalFiles"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  " / 10000"
                ],
                "type": "math"
              }
            ],
            [
              {
                "params": [
                  "TotalBlocks"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  " / 10000"
                ],
                "type": "math"
              }
            ],
            [
              {
                "params": [
                  "LiveNodes"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ],
            [
              {
                "params": [
                  "NumberOfMissingBlocks"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ],
            [
              {
                "params": [
                  "DeadNodes"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ],
            [
              {
                "params": [
                  "PendingReplicationBlocks"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ],
            [
              {
                "params": [
                  "DecomNodes"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ],
            [
              {
                "params": [
                  "HeapMemoryUsageRate"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "title": "分集群节点指标",
      "transform": "table",
      "type": "table"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 22
      },
      "id": 83,
      "panels": [],
      "title": "集群状态核心指标趋势图",
      "type": "row"
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_COREMETRICS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 23
      },
      "hideTimeOverride": true,
      "id": 65,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster-datanode",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"Used\")    FROM \"autogen\".\"hdfs\" WHERE  $timeFilter and cluster =~ /$cluster/ GROUP BY time(30m),\"cluster\"",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "集群已用存储空间",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 1,
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_COREMETRICS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 23
      },
      "hideTimeOverride": true,
      "id": 84,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster-datanode",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"Total\")    FROM \"autogen\".\"hdfs\" WHERE  $timeFilter and cluster =~ /$cluster/ GROUP BY time(30m),\"cluster\"",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "集群总存储空间",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 1,
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_COREMETRICS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 30
      },
      "hideTimeOverride": true,
      "id": 76,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT derivative(mean(Used), 60m)   FROM \"autogen\".\"hdfs\" WHERE   $timeFilter and cluster =~ /$cluster/  GROUP BY  time(60m) ,cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "集群已用存储空间每小时增量",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_COREMETRICS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 30
      },
      "hideTimeOverride": true,
      "id": 91,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT  mean(\"HeapMemoryUsageRate\")  FROM \"autogen\".\"hdfs\" WHERE     $timeFilter and cluster =~ /$cluster/  GROUP BY  time(30m),cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "堆内存使用率",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_FUNC_MONITOR}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 37
      },
      "hideTimeOverride": true,
      "id": 92,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"read\") FROM \"hdfs\" WHERE $timeFilter and cluster =~ /$cluster/  group by  time(30m),cluster ",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "文件读成功率",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_FUNC_MONITOR}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 37
      },
      "hideTimeOverride": true,
      "id": 93,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"write\") FROM \"hdfs\" WHERE $timeFilter  and cluster =~ /$cluster/  group by  time(30m),cluster ",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "文件写成功率",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_FUNC_MONITOR}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 44
      },
      "hideTimeOverride": true,
      "id": 103,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"delete\") FROM \"hdfs\" WHERE $timeFilter and cluster =~ /$cluster/  group by  time(30m),cluster ",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "文件删除成功率",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hn-opendata-datanode": "#1f78c1"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 44
      },
      "id": 97,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {}
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "(1-avg(avg(rate(node_cpu_seconds_total{mode='idle',job=~\"node\",service=~'($cluster)-datanode.*'}[2m])) by (service)) by (service))",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "h",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"PercentUsed\") FROM \"hdfs\" WHERE  time>now() -10m GROUP BY cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode - CPU使用率均值",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-datanode": "#1f78c1",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 51
      },
      "hideTimeOverride": true,
      "id": 94,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "8 * sum(rate(node_network_receive_bytes_total{device='eth0',service=~'($cluster)-datanode.*'}[1m])) by (service)",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"read\" FROM \"hdfs\" WHERE $timeFilter  group by  cluster ",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode集群入流量",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-datanode": "#1f78c1",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 51
      },
      "hideTimeOverride": true,
      "id": 95,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "8 * sum(rate(node_network_transmit_bytes_total{device='eth0',service=~'($cluster)-datanode.*'}[1m])) by (service)",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"read\" FROM \"hdfs\" WHERE $timeFilter  group by  cluster ",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode集群出流量",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-datanode": "#1f78c1",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 58
      },
      "hideTimeOverride": true,
      "id": 100,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "sum(rate(node_disk_written_bytes_total{service=~'($cluster)-datanode.*'}[1m])) by (service)",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"read\" FROM \"hdfs\" WHERE $timeFilter  group by  cluster ",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode集群写入数据量",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hb-log-hdfs": "#0a437c",
        "hdfs.derivative": "#e24d42",
        "hn-opendata-datanode": "#1f78c1",
        "hn-opendata-hdfs": "#6ed0e0",
        "hn-xdata-hdfs": "#e5a8e2"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 58
      },
      "hideTimeOverride": true,
      "id": 101,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "hb-xdata-hdfs",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "sum(rate(node_disk_read_bytes_total{service=~'($cluster)-datanode.*'}[1m])) by (service)",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "cluster"
              ],
              "type": "tag"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "hdfs",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"read\" FROM \"hdfs\" WHERE $timeFilter  group by  cluster ",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Used"
                ],
                "type": "field"
              },
              {
                "params": [
                  " /1024/1024/1024/1024"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "cluster",
              "operator": "=~",
              "value": "/^$cluster$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode集群读出数据量",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hn-opendata-datanode": "#1f78c1"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 65
      },
      "id": 99,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 1,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {}
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "stddev((sum(node_filesystem_avail_bytes{service=~'($cluster)-datanode.*',job=~\"node\",device!~'rootfs'} ) by (instance,service)) / (sum(node_filesystem_size_bytes{service=~'($cluster)-datanode.*',job=~\"node\",device!~'rootfs'}) by (instance,service)) ) by (service) ",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "h",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"PercentUsed\") FROM \"hdfs\" WHERE  time>now() -10m GROUP BY cluster",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode - 磁盘使用率标准差",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "hn-opendata-datanode": "#1f78c1"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 65
      },
      "id": 102,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {}
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_cluster",
          "expr": "avg(node_load5{service=~ '($cluster).datanode.*'}) by (service)",
          "format": "time_series",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "interval": "30m",
          "intervalFactor": 1,
          "legendFormat": "{{service}}",
          "measurement": "h",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"PercentUsed\") FROM \"hdfs\" WHERE  time>now() -10m GROUP BY cluster",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Datanode -  集群Load5均值",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [
    "数据云",
    "认证"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_COREMETRICS}",
        "hide": 0,
        "includeAll": true,
        "label": "集群",
        "multi": true,
        "name": "cluster",
        "options": [],
        "query": "show tag values from hdfs with key = cluster",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "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": "Hadoop-hdfs巡检",
  "uid": "6jsH3sbiz",
  "version": 50,
  "description": "Hadoop-hdfs日常巡检"
}