Grafana dashboard: Basic Information with MSSQL
Description: Basic Information with MSSQL by Haim Cohen 2017


{
  "__inputs": [
    {
      "name": "DS_ZABBIX",
      "label": "Zabbix",
      "description": "Basic Information with MSSQL",
      "type": "datasource",
      "pluginId": "alexanderzobnin-zabbix-datasource",
      "pluginName": "Zabbix"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "alexanderzobnin-zabbix-datasource",
      "name": "Zabbix",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.4.1"
    },
    {
      "type": "panel",
      "id": "grafana-clock-panel",
      "name": "Clock",
      "version": "0.0.9"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.1.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": []
  },
  "editable": true,
  "gnetId": 4158,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "rows": [
    {
      "collapse": false,
      "height": 183,
      "panels": [
        {
          "bgColor": null,
          "clockType": "24 hour",
          "countdownSettings": {
            "endCountdownTime": "2017-06-26T14:01:00.000Z",
            "endText": "00:00:00"
          },
          "dateSettings": {
            "dateFormat": "DD-MMM-YYYY",
            "fontSize": "20px",
            "fontWeight": "normal",
            "showDate": true
          },
          "id": 2,
          "links": [],
          "mode": "time",
          "offsetFromUtc": "",
          "offsetFromUtcMinutes": null,
          "span": 3,
          "timeSettings": {
            "customFormat": "HH:mm:ss",
            "fontSize": "60px",
            "fontWeight": "normal"
          },
          "title": "",
          "type": "grafana-clock-panel"
        },
        {
          "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_ZABBIX}",
          "decimals": 1,
          "format": "s",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 3,
          "interval": null,
          "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": 3,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "application": {
                "filter": "General"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "System uptime"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A"
            }
          ],
          "thresholds": "",
          "title": "up time",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ZABBIX}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 18,
          "interval": null,
          "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": 3,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "application": {
                "filter": "SQL Server"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "SQL Default Instance: Service State - SQL Server"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A",
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": ">1",
          "title": "Service State - SQL Server",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "UP",
              "value": "0"
            },
            {
              "op": "=",
              "text": "Non SQL Server",
              "value": "no value"
            }
          ],
          "valueName": "avg"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ZABBIX}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 20,
          "interval": null,
          "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": 3,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "application": {
                "filter": "SQL Server"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "SQL Default Instance: Service State - SQL Agent"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A",
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": ">1",
          "title": "Service State - SQL Agent",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "UP",
              "value": "0"
            },
            {
              "op": "=",
              "text": "Non SQL Server",
              "value": "no value"
            }
          ],
          "valueName": "avg"
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": 320,
      "panels": [
        {
          "aliasColors": {
            "Free memory": "#7EB26D",
            "Memory used": "#BF1B00"
          },
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "${DS_ZABBIX}",
          "fontSize": "100%",
          "format": "bytes",
          "id": 16,
          "interval": null,
          "legend": {
            "percentage": false,
            "show": true,
            "values": true
          },
          "legendType": "On graph",
          "links": [],
          "maxDataPoints": 3,
          "nullPointMode": "connected",
          "pieType": "pie",
          "span": 4,
          "strokeWidth": 1,
          "targets": [
            {
              "application": {
                "filter": "Memory"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "Memory used"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A"
            },
            {
              "application": {
                "filter": "Memory"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "Free memory"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "B"
            }
          ],
          "title": "Panel Title",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ZABBIX}",
          "decimals": 2,
          "format": "bytes",
          "gauge": {
            "maxValue": null,
            "minValue": null,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 17,
          "interval": null,
          "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": 4,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "application": {
                "filter": "Memory"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "Memory used"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A",
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": "",
          "title": "Memory used",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ZABBIX}",
          "decimals": null,
          "format": "ms",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 1,
          "interval": null,
          "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": 4,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": true,
            "lineColor": "rgb(31, 120, 193)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "application": {
                "filter": "ICMP"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "ICMP response time"
              },
              "itservice": {
                "algorithm": "1",
                "goodsla": "99.0500",
                "name": "LTD-SAPPRD1",
                "serviceid": "5",
                "showsla": "1",
                "sortorder": "0",
                "status": "0",
                "triggerid": "0"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A",
              "slaProperty": {
                "name": "Problem time",
                "property": "problemTime"
              },
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": "80,90",
          "title": "Ping",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            },
            {
              "op": "=",
              "text": "OK",
              "value": "1"
            }
          ],
          "valueName": "current"
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": 289,
      "panels": [
        {
          "aliasColors": {
            "Processor load (1 min average)": "#EAB839",
            "Processor load (15 min average)": "#E24D42",
            "Processor load (5 min average)": "#EF843C"
          },
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ZABBIX}",
          "fill": 1,
          "id": 15,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": true,
            "max": true,
            "min": false,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 6,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "application": {
                "filter": "CPU"
              },
              "functions": [
                {
                  "def": {
                    "category": "Transform",
                    "defaultParams": [
                      "1m",
                      "avg"
                    ],
                    "name": "groupBy",
                    "params": [
                      {
                        "name": "interval",
                        "type": "string"
                      },
                      {
                        "name": "function",
                        "options": [
                          "avg",
                          "min",
                          "max",
                          "sum",
                          "count",
                          "median"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "params": [
                    "30m",
                    "max"
                  ],
                  "text": "groupBy(30m, max)"
                }
              ],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "/.*/"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "custom",
              "fill": false,
              "line": true,
              "lineColor": "rgb(255, 0, 0)",
              "op": "gt",
              "source": "zabbix",
              "value": 5
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CPU load",
          "tooltip": {
            "shared": true,
            "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": null,
              "min": null,
              "show": false
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": ""
          },
          "datasource": "${DS_ZABBIX}",
          "fontSize": "80%",
          "format": "bytes",
          "id": 13,
          "interval": null,
          "legend": {
            "show": true,
            "values": true
          },
          "legendType": "On graph",
          "links": [],
          "maxDataPoints": 3,
          "nullPointMode": "connected",
          "pieType": "pie",
          "span": 6,
          "strokeWidth": 1,
          "targets": [
            {
              "application": {
                "filter": "Filesystems"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "Free disk space on C:"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A"
            },
            {
              "application": {
                "filter": "Filesystems"
              },
              "functions": [],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "Used disk space on C:"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "B"
            }
          ],
          "title": "Status Disk C:",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": 250,
      "panels": [
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ZABBIX}",
          "fill": 1,
          "id": 19,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": true,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 12,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "application": {
                "filter": "SQL Server"
              },
              "functions": [
                {
                  "def": {
                    "category": "Transform",
                    "defaultParams": [
                      "1m",
                      "avg"
                    ],
                    "name": "groupBy",
                    "params": [
                      {
                        "name": "interval",
                        "type": "string"
                      },
                      {
                        "name": "function",
                        "options": [
                          "avg",
                          "min",
                          "max",
                          "sum",
                          "count",
                          "median"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "params": [
                    "10m",
                    "max"
                  ],
                  "text": "groupBy(10m, max)"
                }
              ],
              "group": {
                "filter": "$group"
              },
              "host": {
                "filter": "$host"
              },
              "item": {
                "filter": "SQL Default Instance: % Processor Time"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false
              },
              "refId": "A",
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "% Processor Time",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "group",
        "options": [],
        "query": "*",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "host",
        "options": [],
        "query": "$group.*",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "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": "browser",
  "title": "Basic Information with MSSQL",
  "version": 1,
  "description": "Basic Information with MSSQL by Haim Cohen 2017"
}