Grafana dashboard: Linux Server Heatmap
Description: Heatmap for Linux server based on SNMP collected with OpenNMS. The heatmap uses Load 5 min. average and normalized using the CPU number count. Memory, CPU, and Disk load 5 min. average in %.

Heatmap for Linux server based on SNMP collected with OpenNMS and the OpenNMS Helm plugin. The heatmap uses Load 5 min. average and normalized using the CPU number count. Memory, CPU, and Disk load 5 min. average in %.

{
  "__inputs": [
    {
      "name": "DS_OPENNMS_FLOW",
      "label": "OpenNMS Flow",
      "description": "",
      "type": "datasource",
      "pluginId": "opennms-helm-flow-datasource",
      "pluginName": "OpenNMS Flow"
    },
    {
      "name": "DS_OPENNMS_PERFORMANCE",
      "label": "OpenNMS Performance",
      "description": "",
      "type": "datasource",
      "pluginId": "opennms-helm-performance-datasource",
      "pluginName": "OpenNMS Performance"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.6.1"
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "opennms-helm-flow-datasource",
      "name": "OpenNMS Flow",
      "version": "1.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"
      }
    ]
  },
  "editable": true,
  "gnetId": 11947,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1584554365533,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": "${DS_OPENNMS_FLOW}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "panels": [],
      "repeat": "node",
      "title": "Heatmap: $node",
      "type": "row"
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateInferno",
        "exponent": 0.5,
        "max": 100,
        "min": 0,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$instance",
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 0,
        "y": 1
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 4,
      "legend": {
        "show": true
      },
      "links": [],
      "options": {},
      "reverseYBuckets": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "loadavg5",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "loadavg",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "H",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "CpuNumCpus",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "numcpus",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "expression": "((  loadavg / 100 ) / numcpus * 100.0)",
          "label": "Load in %",
          "refId": "K",
          "type": "expression"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Load average 5 min",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "percent",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateInferno",
        "exponent": 0.5,
        "max": 100,
        "min": 0,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$instance",
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 6,
        "y": 1
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 3,
      "legend": {
        "show": true
      },
      "links": [],
      "options": {},
      "reverseYBuckets": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "CpuRawUser",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "CpuRawUser",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "H",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "CpuRawNice",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "CpuRawNice",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "G",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "CpuRawSystem",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "CpuRawSystem",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "I",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "CpuRawIdle",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "CpuRawIdle",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "J",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "expression": "(( CpuRawUser + CpuRawNice + CpuRawSystem )   / ( CpuRawUser + CpuRawNice  + CpuRawSystem + CpuRawIdle ) * 100.0)",
          "label": "CPU in %",
          "refId": "K",
          "type": "expression"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "percent",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateInferno",
        "exponent": 0.5,
        "max": 100,
        "min": 0,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$instance",
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 12,
        "y": 1
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 2,
      "legend": {
        "show": true
      },
      "links": [],
      "options": {},
      "reverseYBuckets": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "memTotalReal",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "memTotalReal",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "memAvailReal",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "memAvailReal",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "memBuffer",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "memBuffer",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "C",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "memCached",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "memCached",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "D",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "application": {
            "filter": ""
          },
          "attribute": "hrMemorySize",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "hrMemorySize",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "F",
          "resourceId": "nodeSnmp[]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        },
        {
          "expression": "(memTotalReal-memAvailReal-memBuffer-memCached)/hrMemorySize*100",
          "label": "Memory in %",
          "refId": "E",
          "type": "expression"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Memory",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "percent",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateInferno",
        "exponent": 0.5,
        "max": 100,
        "min": 0,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$instance",
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 18,
        "y": 1
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 7,
      "legend": {
        "show": true
      },
      "links": [],
      "options": {},
      "reverseYBuckets": false,
      "targets": [
        {
          "application": {
            "filter": ""
          },
          "attribute": "diskIOLA5",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "host": {
            "filter": ""
          },
          "item": {
            "filter": ""
          },
          "label": "Disk Load in %",
          "mode": 0,
          "nodeId": "$node",
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "resourceId": "diskIOIndex[$disk]",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          },
          "type": "attribute"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Disk: $disk",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "percent",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "OpenNMS Performance",
          "value": "OpenNMS Performance"
        },
        "hide": 0,
        "includeAll": false,
        "label": "OpenNMS Instance",
        "multi": false,
        "name": "instance",
        "options": [],
        "query": "opennms-helm-performance-datasource",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_PERFORMANCE}",
        "definition": "nodeFilter(nodeSysOID LIKE '.1.3.6.1.4.1.8072.3.2.10' & serviceName like 'SNMP') ",
        "hide": 0,
        "includeAll": false,
        "label": "Node",
        "multi": true,
        "name": "node",
        "options": [],
        "query": "nodeFilter(nodeSysOID LIKE '.1.3.6.1.4.1.8072.3.2.10' & serviceName like 'SNMP') ",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_PERFORMANCE}",
        "definition": "nodeResources($node)",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "disk",
        "options": [],
        "query": "nodeResources($node)",
        "refresh": 2,
        "regex": "/^diskIOIndex\\[([a-z]*)\\]/",
        "skipUrlSync": false,
        "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"
    ]
  },
  "timezone": "",
  "title": "Linux Server Heatmap",
  "uid": "BmI3zluZk",
  "version": 15,
  "description": "Heatmap for Linux server based on SNMP collected with OpenNMS. The heatmap uses Load 5 min. average and normalized using the CPU number count. Memory, CPU, and Disk load 5 min. average in %."
}