Grafana dashboard: OpenNMS Windows Node Performance (multirow)
Description: Important linux system metrics at a glance

* Compare nodes easily using the multi row option
* Nodes get selected by using the nodeFilter: nodeSysOID LIKE '.1.3.6.1.4.1.311.1.1.3.1.2' & serviceName like 'SNMP'
* SNMP Informant Standard is required on client side


If you find errors or have enhancements, feel free to create a pull request in our Github repo: https://github.com/opennms-forge/grafana-dashboards/tree/master/Windows-Performance-Multirow

{
  "__inputs": [
    {
      "name": "DS_OPENNMS_HORIZON PM",
      "label": "OpenNMS Horizon PM",
      "description": "",
      "type": "datasource",
      "pluginId": "opennms-helm-performance-datasource",
      "pluginName": "OpenNMS Performance"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.4.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "opennms-helm-performance-datasource",
      "name": "OpenNMS Performance",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Important linux system metrics at a glance",
  "editable": true,
  "gnetId": 6164,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1547505407056,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 7,
      "panels": [],
      "repeat": "netSnmpWindows",
      "title": "$netSnmpWindows",
      "type": "row"
    },
    {
      "aliasColors": {
        "CPU": "#c15c17",
        "Memory": "#e5ac0e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_HORIZON PM}",
      "decimals": null,
      "fill": 1,
      "gridPos": {
        "h": 14,
        "w": 8,
        "x": 0,
        "y": 1
      },
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "sideWidth": 250,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "memorySize",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "memorySize",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "sinfMemAvailMB",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "sinfMemAvailMB",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "expression": "((sinfMemAvailMB*1024)/(memorySize))*100",
          "label": "Memory",
          "refId": "E",
          "type": "expression"
        },
        {
          "attribute": "sinfCpuPctProcTime",
          "label": "CPU",
          "nodeId": "$netSnmpWindows",
          "refId": "C",
          "resourceId": "sinfCpuInstance[6.95.84.111.116.97.108]",
          "type": "attribute"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU & Mem Usage (%)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "percent",
          "label": "Percent",
          "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": {
        "Free": "#508642",
        "Total": "#bf1b00",
        "Used": "#e5ac0e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_HORIZON PM}",
      "decimals": null,
      "fill": 1,
      "gridPos": {
        "h": 14,
        "w": 8,
        "x": 8,
        "y": 1
      },
      "id": 6,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "sideWidth": 250,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "Free",
          "stack": true
        },
        {
          "alias": "Used",
          "stack": true
        },
        {
          "alias": "Total",
          "fill": 0,
          "zindex": 3
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "attribute": "sinfMemAvailMB",
          "hide": true,
          "label": "sinfMemAvailMB",
          "nodeId": "$netSnmpWindows",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "expression": "sinfMemAvailMB * 1024 * 1024",
          "label": "Used",
          "refId": "C",
          "type": "expression"
        },
        {
          "attribute": "memorySize",
          "hide": true,
          "label": "memorySize",
          "nodeId": "$netSnmpWindows",
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "expression": "memorySize * 1024",
          "label": "Total",
          "refId": "D",
          "type": "expression"
        },
        {
          "expression": "Total - Used",
          "label": "Free",
          "refId": "E",
          "type": "expression"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory Usage (MB)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bytes",
          "label": "",
          "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": {
        "Context": "#c15c17",
        "Processes": "#e24d42",
        "Threads": "#e5ac0e",
        "Users": "#b7dbab"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_HORIZON PM}",
      "decimals": null,
      "fill": 1,
      "gridPos": {
        "h": 14,
        "w": 8,
        "x": 16,
        "y": 1
      },
      "id": 5,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "sideWidth": 250,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "hrSystemNumUsers",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "Users",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "processContexts",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "Context",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "sinfProcesses",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "Processes",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "D",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "sinfThreads",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "Threads",
          "mode": 0,
          "nodeId": "$netSnmpWindows",
          "options": {
            "showDisabledItems": false
          },
          "refId": "C",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "System Counts",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "none",
          "label": "Count",
          "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": [
    "OpenNMS"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_HORIZON PM}",
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "netSnmpWindows",
        "options": [],
        "query": "nodeFilter(nodeSysOID LIKE '.1.3.6.1.4.1.311.1.1.3.1.2' & serviceName like 'SNMP')",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-2d",
    "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": "OpenNMS Windows Node Performance (multirow)",
  "uid": "xdZyTC7mz",
  "version": 2
}