Grafana dashboard: Server Monitoring Dashboard
Description: Dashboard to view multiple servers


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.0.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "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"
      }
    ]
  },
  "description": "Dashboard to view multiple servers",
  "editable": true,
  "gnetId": 10007,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1554502552765,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 1,
        "w": 8,
        "x": 0,
        "y": 0
      },
      "id": 11,
      "interval": "",
      "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"
        }
      ],
      "repeat": "node",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "job",
      "targets": [],
      "thresholds": "",
      "timeFrom": null,
      "title": "$node",
      "type": "singlestat",
      "valueFontSize": "30%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "editable": true,
      "error": false,
      "fill": 10,
      "grid": {},
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 1
      },
      "id": 7,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 0,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "paceLength": 10,
      "percentage": true,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "node",
      "seriesOverrides": [],
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"system\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"system\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "system",
          "metric": "",
          "refId": "A",
          "step": 1200,
          "target": ""
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"user\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"user\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "user",
          "refId": "B",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"nice\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"nice\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "nice",
          "refId": "C",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"iowait\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"iowait\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "iowait",
          "refId": "E",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"steal\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"steal\",job=~'$node'}[5m]))",
          "intervalFactor": 2,
          "legendFormat": "steal",
          "refId": "H",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"idle\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"idle\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "idle",
          "refId": "D",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"irq\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"irq\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "irq",
          "refId": "F",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"softirq\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"softirq\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "softirq",
          "refId": "G",
          "step": 1200
        },
        {
          "expr": "sum(irate(node_cpu_seconds_total{mode=\"guest\",job=~'$node'}[5m])) or sum(irate(node_cpu{mode=\"guest\",job=~'$node'}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "guest",
          "refId": "I",
          "step": 1200
        }
      ],
      "thresholds": [
        {
          "colorMode": "custom",
          "fill": true,
          "fillColor": "rgba(216, 200, 27, 0.27)",
          "lineColor": "rgba(255, 255, 255, 0)",
          "op": "gt",
          "value": 0,
          "yaxis": "left"
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU",
      "tooltip": {
        "msResolution": false,
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percentunit",
          "label": "%",
          "logBase": 1,
          "max": 100,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Slab": "#E5A8E2",
        "Swap": "#E24D42"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "editable": true,
      "error": false,
      "fill": 1,
      "grid": {},
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 8
      },
      "id": 17,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "node",
      "seriesOverrides": [
        {
          "alias": "/Apps|Buffers|Cached|Free|Slab|SwapCached|PageTables|VmallocUsed/",
          "fill": 5,
          "stack": true
        },
        {
          "alias": "Swap",
          "fill": 5,
          "stack": true
        }
      ],
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "( node_memory_MemTotal_bytes{job=~'$node'} - node_memory_MemFree_bytes{job=~'$node'} - node_memory_Buffers_bytes{job=~'$node'} - node_memory_Cached_bytes{job=~'$node'} - node_memory_SwapCached_bytes{job=~'$node'} - node_memory_Slab_bytes{job=~'$node'} - node_memory_PageTables_bytes{job=~'$node'} - node_memory_VmallocUsed_bytes{job=~'$node'} ) or ( node_memory_MemTotal{job=~'$node'} - node_memory_MemFree{job=~'$node'} - node_memory_Buffers{job=~'$node'} - node_memory_Cached{job=~'$node'} - node_memory_SwapCached{job=~'$node'} - node_memory_Slab{job=~'$node'} - node_memory_PageTables{job=~'$node'} - node_memory_VmallocUsed{job=~'$node'} )",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Apps",
          "metric": "",
          "refId": "A",
          "step": 1200,
          "target": ""
        },
        {
          "expr": "node_memory_Buffers_bytes{job=~'$node'} or node_memory_Buffers{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Buffers",
          "refId": "B",
          "step": 1200
        },
        {
          "expr": "node_memory_Cached_bytes{job=~'$node'} or node_memory_Cached{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Cached",
          "refId": "D",
          "step": 1200
        },
        {
          "expr": "node_memory_MemFree_bytes{job=~'$node'} or node_memory_MemFree{job=~'$node'}",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Free",
          "refId": "E",
          "step": 1200
        },
        {
          "expr": "node_memory_Slab_bytes{job=~'$node'} or node_memory_Slab{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Slab",
          "refId": "F",
          "step": 1200
        },
        {
          "expr": "node_memory_SwapCached_bytes{job=~'$node'} or node_memory_SwapCached{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "SwapCached",
          "refId": "G",
          "step": 1200
        },
        {
          "expr": "node_memory_PageTables_bytes{job=~'$node'} or node_memory_PageTables{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "PageTables",
          "refId": "H",
          "step": 1200
        },
        {
          "expr": "node_memory_VmallocUsed_bytes{job=~'$node'} or node_memory_VmallocUsed{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "VmallocUsed",
          "metric": "",
          "refId": "I",
          "step": 1200
        },
        {
          "expr": "(node_memory_SwapTotal_bytes{job=~'$node'} - node_memory_SwapFree{job=~'$node'}) or (node_memory_SwapTotal{job=~'$node'} - node_memory_SwapFree{job=~'$node'})",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Swap",
          "metric": "",
          "refId": "C",
          "step": 1200
        },
        {
          "expr": "node_memory_Committed_AS_bytes{job=~'$node'} or node_memory_Committed_AS{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Committed",
          "metric": "",
          "refId": "J",
          "step": 1200
        },
        {
          "expr": "node_memory_Mapped_bytes{job=~'$node'} or node_memory_Mapped{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Mapped",
          "refId": "K",
          "step": 1200
        },
        {
          "expr": "node_memory_Active_bytes{job=~'$node'} or node_memory_Active{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Active",
          "metric": "",
          "refId": "L",
          "step": 1200
        },
        {
          "expr": "node_memory_Inactive_bytes{job=~'$node'} or node_memory_Inactive{job=~'$node'}",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Inactive",
          "metric": "",
          "refId": "M",
          "step": 1200
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory",
      "tooltip": {
        "msResolution": false,
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bytes",
          "label": "GB",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "editable": true,
      "error": false,
      "fill": 1,
      "grid": {},
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 15
      },
      "id": 13,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "node",
      "seriesOverrides": [],
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "node_load1{job=~\"$node\"}",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "load",
          "metric": "",
          "refId": "A",
          "step": 1200,
          "target": ""
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Load",
      "tooltip": {
        "msResolution": false,
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 3,
      "editable": true,
      "error": false,
      "fill": 1,
      "grid": {},
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 22
      },
      "id": 9,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "node",
      "seriesOverrides": [],
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "100.0 - 100 * (node_filesystem_avail_bytes{job=~'$node',device !~'tmpfs',device!~'by-uuid'} / node_filesystem_size_bytes{job=~'$node',device !~'tmpfs',device!~'by-uuid'}) or 100.0 - 100 * (node_filesystem_avail{job=~'$node',device !~'tmpfs',device!~'by-uuid'} / node_filesystem_size{job=~'$node',device !~'tmpfs',device!~'by-uuid'})",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{mountpoint}}",
          "metric": "",
          "refId": "A",
          "step": 1200,
          "target": ""
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Disk Space Used",
      "tooltip": {
        "msResolution": true,
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percent",
          "logBase": 1,
          "max": 100,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "editable": true,
      "error": false,
      "fill": 1,
      "grid": {},
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 29
      },
      "id": 12,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "node",
      "seriesOverrides": [
        {
          "alias": "/.*_in/",
          "transform": "negative-Y"
        }
      ],
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "irate(node_network_receive_bytes_total{job=~'$node'}[5m])*8 or irate(node_network_receive_bytes{job=~'$node'}[5m])*8",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{device}}_in",
          "metric": "",
          "refId": "A",
          "step": 1200,
          "target": ""
        },
        {
          "expr": "irate(node_network_transmit_bytes_total{job=~'$node'}[5m])*8 or irate(node_network_transmit_bytes{job=~'$node'}[5m])*8",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{device}}_out",
          "refId": "B",
          "step": 1200
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Network Traffic",
      "tooltip": {
        "msResolution": false,
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bits",
          "label": "bits in (-) / bits out (+)",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "5m",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "prometheus"
  ],
  "templating": {
    "list": [
      {
        "allFormat": "glob",
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(node_exporter_build_info, job)",
        "hide": 0,
        "includeAll": false,
        "label": "",
        "multi": true,
        "multiFormat": "regex values",
        "name": "node",
        "options": [],
        "query": "label_values(node_exporter_build_info, job)",
        "refresh": 1,
        "regex": "[^O].*",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "/.*Mainnet.*/",
        "tags": [],
        "tagsQuery": "label_values(node_exporter_build_info, job)",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "now": true,
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "utc",
  "title": "Server Monitoring Dashboard",
  "uid": "_Yi_q4eik",
  "version": 23
}