{
  "dashboard": {
    "__inputs": [
      {
        "name": "DS_PROMETHEUS",
        "label": "prometheus",
        "description": "",
        "type": "datasource",
        "pluginId": "prometheus",
        "pluginName": "Prometheus"
      }
    ],
    "__requires": [
      {
        "type": "grafana",
        "id": "grafana",
        "name": "Grafana",
        "version": "4.2.0"
      },
      {
        "type": "panel",
        "id": "graph",
        "name": "Graph",
        "version": ""
      },
      {
        "type": "datasource",
        "id": "prometheus",
        "name": "Prometheus",
        "version": "1.0.0"
      }
    ],
    "annotations": {
      "list": []
    },
    "editable": true,
    "gnetId": null,
    "graphTooltip": 0,
    "hideControls": false,
    "id": null,
    "links": [],
    "refresh": false,
    "rows": [
      {
        "collapse": false,
        "height": "150px",
        "panels": [
          {
            "aliasColors": {},
            "bars": false,
            "datasource": "{{datasource}}",
            "editable": true,
            "error": false,
            "fill": 0,
            "grid": {},
            "id": 1,
            "legend": {
              "avg": false,
              "current": false,
              "max": false,
              "min": false,
              "show": true,
              "total": false,
              "values": false
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "connected",
            "percentage": false,
            "pointradius": 5,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "span": 4,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "refId": "A",
                "expr": "hadoop_resourcemanager_numunhealthynms{hostname=~\"[[hostname]]\",cluster=~\"[[cluster]]\"}",
                "legendFormat": "{{hostname}}",
                "format": "time_series",
                "intervalFactor": 2
              }
            ],
            "thresholds": [],
            "timeFrom": null,
            "timeShift": null,
            "title": "NumUnhealthyNMs",
            "tooltip": {
              "msResolution": false,
              "shared": false,
              "sort": 0,
              "value_type": "cumulative"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ]
          },
          {
            "aliasColors": {},
            "bars": true,
            "datasource": "{{datasource}}",
            "editable": true,
            "error": false,
            "fill": 0,
            "grid": {},
            "id": 2,
            "legend": {
              "avg": false,
              "current": 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": [],
            "span": 4,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "refId": "A",
                "expr": "hadoop_resourcemanager_numactivenms{hostname=~\"[[hostname]]\",cluster=~\"[[cluster]]\"}",
                "legendFormat": "{{hostname}}",
                "format": "time_series",
                "intervalFactor": 2
              }
            ],
            "thresholds": [],
            "timeFrom": null,
            "timeShift": null,
            "title": "NumActiveNMs",
            "tooltip": {
              "msResolution": false,
              "shared": false,
              "sort": 0,
              "value_type": "cumulative"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ]
          },
          {
            "aliasColors": {},
            "bars": false,
            "datasource": "{{datasource}}",
            "editable": true,
            "error": false,
            "fill": 0,
            "grid": {},
            "id": 3,
            "legend": {
              "avg": false,
              "current": false,
              "max": false,
              "min": false,
              "show": true,
              "total": false,
              "values": false
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "connected",
            "percentage": false,
            "pointradius": 5,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "span": 4,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "refId": "A",
                "expr": "hadoop_resourcemanager_numrebootednms{hostname=~\"[[hostname]]\",cluster=~\"[[cluster]]\"}",
                "legendFormat": "{{hostname}}",
                "format": "time_series",
                "intervalFactor": 2
              }
            ],
            "thresholds": [],
            "timeFrom": null,
            "timeShift": null,
            "title": "NumRebootedNMs",
            "tooltip": {
              "msResolution": false,
              "shared": false,
              "sort": 0,
              "value_type": "cumulative"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ]
          }
        ],
        "repeat": null,
        "repeatIteration": null,
        "repeatRowId": null,
        "showTitle": false,
        "title": "Nodes",
        "titleSize": "h6"
      },
      {
        "collapse": false,
        "height": "150px",
        "panels": [
          {
            "aliasColors": {},
            "bars": false,
            "datasource": "{{datasource}}",
            "editable": true,
            "error": false,
            "fill": 0,
            "grid": {},
            "id": 4,
            "legend": {
              "avg": false,
              "current": false,
              "max": false,
              "min": false,
              "show": true,
              "total": false,
              "values": false
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "connected",
            "percentage": false,
            "pointradius": 5,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "span": 4,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "refId": "A",
                "expr": "hadoop_resourcemanager_numdecommissionednms{hostname=~\"[[hostname]]\",cluster=~\"[[cluster]]\"}",
                "legendFormat": "{{hostname}}",
                "format": "time_series",
                "intervalFactor": 2
              }
            ],
            "thresholds": [],
            "timeFrom": null,
            "timeShift": null,
            "title": "NumDecommissionedNMs",
            "tooltip": {
              "msResolution": false,
              "shared": false,
              "sort": 0,
              "value_type": "cumulative"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ]
          },
          {
            "aliasColors": {},
            "bars": false,
            "datasource": "{{datasource}}",
            "editable": true,
            "error": false,
            "fill": 0,
            "grid": {},
            "id": 5,
            "legend": {
              "avg": false,
              "current": false,
              "max": false,
              "min": false,
              "show": true,
              "total": false,
              "values": false
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "connected",
            "percentage": false,
            "pointradius": 5,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "span": 4,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "refId": "A",
                "expr": "hadoop_resourcemanager_numlostnms{hostname=~\"[[hostname]]\",cluster=~\"[[cluster]]\"}",
                "legendFormat": "{{hostname}}",
                "format": "time_series",
                "intervalFactor": 2
              }
            ],
            "thresholds": [],
            "timeFrom": null,
            "timeShift": null,
            "title": "NumLostNMs",
            "tooltip": {
              "msResolution": false,
              "shared": false,
              "sort": 0,
              "value_type": "cumulative"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ]
          }
        ],
        "repeat": null,
        "repeatIteration": null,
        "repeatRowId": null,
        "showTitle": false,
        "title": "Nodes",
        "titleSize": "h6"
      }
    ],
    "schemaVersion": 14,
    "style": "dark",
    "tags": [],
    "templating": {
      "enable": true,
      "list": [
        {
          "allFormat": "glob",
          "allValue": null,
          "current": {
            "text": "{{cluster_name}}",
            "value": "{{cluster_name}}"
          },
          "datasource": null,
          "hide": 0,
          "includeAll": false,
          "label": "",
          "multi": true,
          "multiFormat": "glob",
          "name": "cluster",
          "options": [
            {
              "selected": true,
              "text": "{{cluster_name}}",
              "value": "{{cluster_name}}"
            }
          ],
          "query": "{{cluster_name}}",
          "refresh": 0,
          "refresh_on_load": false,
          "type": "custom"
        },
        {
          "allFormat": "glob",
          "allValue": null,
          "current": {},
          "datasource": "{{datasource}}",
          "hide": 0,
          "includeAll": true,
          "label": null,
          "multi": true,
          "name": "hostname",
          "options": [],
          "query": "label_values({service=\"resourcemanager\",cluster=\"$cluster\"},hostname)",
          "refresh": 1,
          "refresh_on_load": false,
          "regex": "",
          "sort": 1,
          "tagValuesQuery": "",
          "tags": [],
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        }
      ]
    },
    "time": {
      "from": "now-30m",
      "to": "now"
    },
    "timepicker": {
      "collapse": false,
      "enable": true,
      "notice": false,
      "now": true,
      "refresh_intervals": [
        "5s",
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
      ],
      "status": "Stable",
      "time_options": [
        "5m",
        "15m",
        "1h",
        "6h",
        "12h",
        "24h",
        "2d",
        "7d",
        "30d"
      ],
      "type": "timepicker"
    },
    "timezone": "browser",
    "title": "{{title}}",
    "version": 1
  }
}
