VMware Datastore Storage Monitoring
vmware vCenter Storage availability
Collector is a powershell script scheduled in Windows server. I have uploaded it here:
https://github.com/micelshima/InfluxDB-Powershell-Module
{
  "__inputs": [
    {
      "name": "DS_MONITORING_DATASOURCE",
      "label": "Monitoring datasource",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.1.4"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.0.1"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "id": null,
  "title": "VMware Datastore Storage Monitoring",
  "tags": [
    "monitor",
    "storage",
    "vmware"
  ],
  "style": "dark",
  "timezone": "browser",
  "editable": true,
  "sharedCrosshair": true,
  "hideControls": false,
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "now": true,
    "refresh_intervals": [
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "templating": {
    "list": [
      {
        "allFormat": "regex values",
        "allValue": null,
        "current": {},
        "datasource": "${DS_MONITORING_DATASOURCE}",
        "hide": 0,
        "includeAll": true,
        "label": "",
        "multi": true,
        "multiFormat": "regex values",
        "name": "CPD",
        "options": [],
        "query": "SHOW TAG VALUES WITH key= \"cpd\" ",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tagsQuery": null,
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "regex values",
        "allValue": null,
        "current": {},
        "datasource": "${DS_MONITORING_DATASOURCE}",
        "hide": 0,
        "includeAll": true,
        "label": "",
        "multi": true,
        "multiFormat": "regex values",
        "name": "entorno",
        "options": [],
        "query": "SHOW TAG VALUES from vmdatastores WITH key= \"entorno\" ",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tagsQuery": null,
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "regex values",
        "allValue": null,
        "current": {},
        "datasource": "${DS_MONITORING_DATASOURCE}",
        "hide": 0,
        "includeAll": true,
        "label": "device type",
        "multi": true,
        "multiFormat": "regex values",
        "name": "type",
        "options": [],
        "query": "show tag values from vmdatastores with key=\"type\"",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tagsQuery": null,
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "regex values",
        "allValue": null,
        "current": {},
        "datasource": "${DS_MONITORING_DATASOURCE}",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "multiFormat": "regex values",
        "name": "datastore",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"datastore\" where entorno=~ /$entorno$/ and type =~ /$type$/ and cpd =~ /$CPD$/",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tagsQuery": null,
        "type": "query",
        "useTags": false
      }
    ]
  },
  "annotations": {
    "list": []
  },
  "refresh": "2h",
  "schemaVersion": 13,
  "version": 91,
  "links": [
    {
      "icon": "external link",
      "tags": [
        "vmware",
        "monitor"
      ],
      "type": "dashboards"
    }
  ],
  "gnetId": 1103,
  "rows": [
    {
      "title": "Row",
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "decimals": 1,
          "editable": true,
          "error": false,
          "format": "gbytes",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "height": "",
          "id": 3,
          "interval": ">2h",
          "links": [],
          "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": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 1,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "targets": [
            {
              "alias": "",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "30m"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT sum(\"size\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "size"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "sum"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "datastore",
                  "operator": "=~",
                  "value": "/$datastore$/"
                }
              ]
            }
          ],
          "thresholds": "",
          "title": "Capacity",
          "type": "singlestat",
          "valueFontSize": "50%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "decimals": 1,
          "editable": true,
          "error": false,
          "format": "gbytes",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "height": "",
          "id": 4,
          "interval": ">2h",
          "links": [],
          "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": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 1,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "targets": [
            {
              "alias": "",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "15m"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT sum(\"size\") -sum(\"free\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "size"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "sum"
                  },
                  {
                    "params": [
                      "-free"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "datastore",
                  "operator": "=~",
                  "value": "/$datastore$/"
                }
              ]
            }
          ],
          "thresholds": "",
          "title": "Used",
          "type": "singlestat",
          "valueFontSize": "50%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "decimals": 1,
          "editable": true,
          "error": false,
          "format": "gbytes",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "height": "",
          "id": 53,
          "interval": ">2h",
          "links": [],
          "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": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 1,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "targets": [
            {
              "alias": "",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "15m"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT sum(\"available\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "size"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "sum"
                  },
                  {
                    "params": [
                      "-free"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "datastore",
                  "operator": "=~",
                  "value": "/$datastore$/"
                }
              ]
            }
          ],
          "thresholds": "",
          "title": "Available",
          "type": "singlestat",
          "valueFontSize": "50%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "aliasColors": {
            "available": "#508642",
            "capacity": "#447EBC",
            "used": "#0A50A1",
            "vmdatastores.mean": "#7EB26D"
          },
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "editable": true,
          "error": false,
          "fontSize": "80%",
          "format": "gbytes",
          "hideTimeOverride": true,
          "id": 135,
          "interval": ">2h",
          "legend": {
            "avg": true,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": true
          },
          "legendType": "Under graph",
          "links": [],
          "maxDataPoints": 3,
          "nullPointMode": "connected",
          "nullText": null,
          "pieType": "pie",
          "span": 2,
          "strokeWidth": 1,
          "targets": [
            {
              "alias": "used",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT sum(\"size\") -sum(\"free\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "size"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "available",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT sum(\"available\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval) fill(null)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "available"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "timeFrom": null,
          "title": "GB",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "columns": [
            {
              "text": "Min",
              "value": "min"
            },
            {
              "text": "Max",
              "value": "max"
            },
            {
              "text": "Avg",
              "value": "avg"
            },
            {
              "text": "Current",
              "value": "current"
            }
          ],
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "editable": true,
          "error": false,
          "fontSize": "80%",
          "height": "",
          "id": 63,
          "interval": ">2d",
          "links": [],
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 4,
            "desc": false
          },
          "span": 7,
          "styles": [
            {
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "colorMode": "cell",
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 0,
              "pattern": "/.*/",
              "thresholds": [
                "0",
                "5"
              ],
              "type": "number",
              "unit": "gbytes"
            }
          ],
          "targets": [
            {
              "alias": "$tag_datastore",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "policy": "default",
              "query": "SELECT max(\"available\") FROM \"vmdatastores\" WHERE $timeFilter and datastore=~ /$datastore$/ GROUP BY time($interval), \"datastore\" fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Available Storage",
          "transform": "timeseries_aggregations",
          "type": "table"
        }
      ],
      "showTitle": false,
      "titleSize": "h6",
      "height": "200px",
      "repeat": null,
      "repeatRowId": null,
      "repeatIteration": null,
      "collapse": false
    },
    {
      "title": "New row",
      "panels": [
        {
          "aliasColors": {
            "DSOfimatica01FCsol": "#7EB26D"
          },
          "bars": false,
          "datasource": "${DS_MONITORING_DATASOURCE}",
          "decimals": 0,
          "editable": true,
          "error": false,
          "fill": 2,
          "grid": {},
          "height": "",
          "hideTimeOverride": false,
          "id": 2,
          "interval": ">2h",
          "legend": {
            "alignAsTable": false,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "minSpan": 3,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeat": "datastore",
          "seriesOverrides": [],
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "$tag_datastore",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "15m"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "datastore"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "vmdatastores",
              "policy": "default",
              "query": "SELECT mean(\"available\") FROM \"vmdatastores\" WHERE \"datastore\" =~ /$datastore$/ AND $timeFilter GROUP BY time($interval), \"datastore\" fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "available"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ],
                [
                  {
                    "params": [
                      "size"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "datastore",
                  "operator": "=",
                  "value": "DSOfimatica"
                }
              ]
            }
          ],
          "thresholds": [
            {
              "colorMode": "custom",
              "line": true,
              "lineColor": "rgb(216, 27, 27)",
              "op": "gt",
              "value": 0
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "transparent": false,
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": "Available GB",
              "logBase": 1,
              "max": 250,
              "min": -15,
              "show": true
            },
            {
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "showTitle": false,
      "titleSize": "h6",
      "height": "200px",
      "repeat": null,
      "repeatRowId": null,
      "repeatIteration": null,
      "collapse": false
    }
  ],
  "description": "vmware vCenter Storage availability"
}