Grafana dashboard: VCenter Overview
Description: View VCenter status either it's up or down

VCenter Overview Dashboard is the first of the 4 dashboard for VCenter monitoring. It is built on Grafana 5 release. The collector used was vsphere-vcenter-influx-go (https://github.com/vikramjakhr/vsphere-vcenter-influx-go)

{
  "__inputs": [
    {
      "name": "DS_VCENTERDB",
      "label": "VcenterDB",
      "description": "Enter influxdb database name for Vcenter ",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "VAR_HOST_DASHBOARD_URL",
      "type": "constant",
      "label": "host_dashboard_url",
      "value": "http://127.0.0.1",
      "description": "Enter url of vcenter hosts dashboard (for navigation to host dashboard)"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "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": 6168,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1526708275346,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$datasourceName",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 4,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hideTimeOverride": false,
      "id": 2,
      "interval": null,
      "links": [
        {
          "dashUri": "db/vmware-hosts-detail",
          "dashboard": "VMware hosts detail",
          "includeVars": false,
          "keepTime": true,
          "title": "VMware hosts detail",
          "type": "absolute",
          "url": "$host_dashboard_url"
        }
      ],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [],
      "repeat": "host",
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "last",
      "targets": [
        {
          "alias": "$tag_name",
          "groupBy": [],
          "measurement": "vsphere_vcenter",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "domain",
              "operator": "=",
              "value": "example.com"
            }
          ]
        }
      ],
      "thresholds": "1,1",
      "title": "VCenter $host",
      "transparent": false,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "UP",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Down",
          "value": "1"
        }
      ],
      "valueName": "current"
    }
  ],
  "schemaVersion": 16,
  "style": "dark",
  "tags": [
    "vcenter"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_VCENTERDB}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "host",
        "options": [],
        "query": "SHOW TAG VALUES FROM vsphere_hostsystem WITH KEY = \"host\"",
        "refresh": 1,
        "regex": "",
        "sort": 3,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "text": "VcenterDB",
          "value": "VcenterDB"
        },
        "hide": 2,
        "label": null,
        "name": "datasourceName",
        "options": [],
        "query": "influxdb",
        "refresh": 1,
        "regex": "VcenterDB",
        "type": "datasource"
      },
      {
        "current": {
          "value": "${VAR_HOST_DASHBOARD_URL}",
          "text": "${VAR_HOST_DASHBOARD_URL}"
        },
        "hide": 2,
        "label": null,
        "name": "host_dashboard_url",
        "options": [
          {
            "value": "${VAR_HOST_DASHBOARD_URL}",
            "text": "${VAR_HOST_DASHBOARD_URL}"
          }
        ],
        "query": "${VAR_HOST_DASHBOARD_URL}",
        "type": "constant"
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "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": "VCenter Overview",
  "uid": "FTDBtvzik",
  "version": 79,
  "description": "View VCenter status either it's up or down"
}