grafana dashboard模板

image.png
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": false,
        "iconColor": "#e0752d",
        "limit": 100,
        "name": "",
        "showIn": 0,
        "tags": [
          "pmm_annotation"
        ],
        "type": "tags"
      },
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "#6ed0e0",
        "limit": 100,
        "name": "",
        "showIn": 0,
        "tags": [],
        "type": "dashboard"
      }
    ]
  },
  "description": "General monitoring for linux",
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": 10,
  "iteration": 1588833599144,
  "links": [],
  "panels": [
    {
      "content": "

host $host monitoring

", "datasource": null, "gridPos": { "h": 2, "w": 24, "x": 0, "y": 0 }, "id": 36, "links": [], "mode": "html", "options": {}, "title": "", "type": "text" }, { "cacheTimeout": null, "colorBackground": false, "colorPostfix": false, "colorPrefix": false, "colorValue": true, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "Zabbix", "decimals": -2, "format": "s", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 3, "x": 0, "y": 2 }, "id": 63, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "application": { "filter": "Status" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "System uptime" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": "", "timeFrom": null, "timeShift": null, "title": "System Uptime", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "current" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "Zabbix", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 3, "x": 3, "y": 2 }, "id": 57, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "application": { "filter": "CPU" }, "expr": "avg_over_time(node_load1{instance=\"$host\"}[$interval]) or avg_over_time(node_load1{instance=\"$host\"}[5m])", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "Load average (1m avg)" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": "", "title": "Load Average", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": null, "decimals": null, "format": "bytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 3, "x": 6, "y": 2 }, "id": 65, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "application": { "filter": "Memory" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "Total memory" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": "", "timeFrom": null, "timeShift": null, "title": "RAM", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "current" }, { "cacheTimeout": null, "colorBackground": false, "colorPostfix": false, "colorPrefix": false, "colorValue": true, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": null, "format": "bytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 3, "x": 9, "y": 2 }, "id": 67, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "#73BF69", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "application": { "filter": "Memory" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "Available memory" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": "", "timeFrom": null, "timeShift": null, "title": "Memory Available", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" }, { "datasource": "Zabbix", "gridPos": { "h": 3, "w": 3, "x": 12, "y": 2 }, "id": 81, "options": { "fieldOptions": { "calcs": [ "mean" ], "defaults": { "mappings": [], "max": 100, "min": 0, "thresholds": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "override": {}, "values": false }, "orientation": "auto", "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "6.4.4", "targets": [ { "application": { "filter": "CPU" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "CPU utilization" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "timeFrom": null, "timeShift": null, "title": "Cpu used percent", "type": "gauge" }, { "cacheTimeout": null, "colorBackground": false, "colorPrefix": false, "colorValue": true, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": null, "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 3, "x": 15, "y": 2 }, "id": 83, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "application": { "filter": "Monitoring agent" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "Zabbix agent ping" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": "", "timeFrom": null, "timeShift": null, "title": "Zabbix agent ping", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 49, "panels": [], "title": "CPU", "type": "row" }, { "aliasColors": { "Max Core Utilization": "#bf1b00", "idle": "#806EB7", "iowait": "#E24D42", "nice": "#1F78C1", "softirq": "#806EB7", "system": "#EAB839", "user": "#508642" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Zabbix", "decimals": 2, "editable": true, "error": false, "fill": 5, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 6 }, "height": "", "id": 2, "legend": { "alignAsTable": true, "avg": true, "current": true, "hideEmpty": true, "hideZero": true, "max": true, "min": true, "rightSide": false, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "Max Core Utilization", "lines": false, "pointradius": 1, "points": true, "stack": false } ], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "application": { "filter": "CPU" }, "expr": "clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu{instance=\"$host\",mode!=\"idle\"}[$interval]),1)) or (clamp_max(irate(node_cpu{instance=\"$host\",mode!=\"idle\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[$interval]) or avg_over_time(node_cpu_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[5m]))),100)", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "CPU idle time" }, "legendFormat": "{{ mode }}", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "B", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "CPU Usage", "tooltip": { "msResolution": false, "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": "", "logBase": 1, "max": "100", "min": 0, "show": true }, { "decimals": null, "format": "short", "logBase": 1, "max": null, "min": 0, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Zabbix", "decimals": 2, "editable": true, "error": false, "fill": 2, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 6 }, "id": 27, "legend": { "alignAsTable": true, "avg": true, "current": true, "hideEmpty": false, "max": true, "min": true, "rightSide": false, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "CPU" }, "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "rate(node_context_switches{instance=\"$host\"}[$interval]) or irate(node_context_switches{instance=\"$host\"}[5m])", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "CPU iowait time" }, "legendFormat": "Context Switches", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "CPU iowait time", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "s", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 13 }, "id": 47, "panels": [], "title": "Memory", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 14 }, "id": 77, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "Memory" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "Memory utilization" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Memory used percent", "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": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 14 }, "id": 79, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "Memory" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "Available memory" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "B", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Available memory", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "label": null, "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 } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 20 }, "id": 45, "panels": [], "title": "Disk", "type": "row" }, { "aliasColors": { "Read Latency": "#1f78c1", "Write Latency": "#e24d42" }, "bars": false, "cacheTimeout": null, "dashLength": 10, "dashes": false, "datasource": null, "decimals": 2, "description": "Shows average latency for Reads and Writes IO Devices. Higher than typical latency for highly loaded storage indicates saturation (overload) and is frequent cause of performance problems. Higher than normal latency also can indicate internal storage problems.", "fill": 2, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 21 }, "id": 61, "legend": { "alignAsTable": true, "avg": false, "current": true, "hideEmpty": true, "hideZero": true, "max": false, "min": false, "rightSide": true, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": false, "linewidth": 2, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pluginVersion": "6.4.4", "pointradius": 1, "points": true, "renderer": "flot", "seriesOverrides": [ { "alias": "Avg Read Latency (1h)" }, { "alias": "Avg Write Latency (1h)" } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Filesystem*/" }, "datasource": "Zabbix", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "/.*Free*/" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "proxy": { "filter": "" }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "tags": { "filter": "" }, "trigger": { "filter": "" }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Disk Free", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "percent", "label": null, "logBase": 2, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 21 }, "id": 71, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Filesystem*/" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "/.*space*/" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Disk space", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "decbytes", "label": null, "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": { "Free": "#7eb26d", "Total": "#bf1b00", "Used": "#f2c96d" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Zabbix", "decimals": 2, "editable": true, "error": false, "fill": 3, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 27 }, "id": 23, "legend": { "alignAsTable": true, "avg": false, "current": true, "hideEmpty": false, "max": false, "min": false, "rightSide": false, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "Total", "fill": 0, "stack": false } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "Memory" }, "calculatedInterval": "2s", "datasourceErrors": {}, "errors": {}, "expr": "node_memory_SwapTotal{instance=\"$host\"} - node_memory_SwapFree{instance=\"$host\"}", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "Free swap space" }, "legendFormat": "Used", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } }, { "application": { "filter": "" }, "calculatedInterval": "2s", "datasourceErrors": {}, "errors": {}, "expr": "node_memory_SwapFree{instance=\"$host\"}", "format": "time_series", "functions": [], "group": { "filter": "" }, "host": { "filter": "" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "" }, "legendFormat": "Free", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "B", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } }, { "application": { "filter": "" }, "expr": "node_memory_SwapTotal{instance=\"$host\"}", "format": "time_series", "functions": [], "group": { "filter": "" }, "host": { "filter": "" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "" }, "legendFormat": "Total", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "C", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Swap Space", "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": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "decimals": null, "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": { "Total": "#bf1b00", "Total ": "#bf1b00" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Zabbix", "decimals": 2, "editable": true, "error": false, "fill": 2, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 27 }, "id": 30, "legend": { "alignAsTable": true, "avg": false, "current": true, "hideEmpty": false, "max": false, "min": false, "rightSide": false, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "Swap Out (Writes)", "transform": "negative-Y" }, { "alias": "Total", "legend": false, "lines": false } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "Memory" }, "calculatedInterval": "2s", "datasourceErrors": {}, "errors": {}, "expr": "rate(node_vmstat_pswpin{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=\"$host\"}[5m]) * 4096", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "Free swap space in %" }, "legendFormat": "Swap In (Reads)", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } }, { "application": { "filter": "" }, "calculatedInterval": "2s", "datasourceErrors": {}, "errors": {}, "expr": "rate(node_vmstat_pswpout{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=\"$host\"}[5m]) * 4096", "format": "time_series", "functions": [], "group": { "filter": "" }, "host": { "filter": "" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "" }, "legendFormat": "Swap Out (Writes)", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "B", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } }, { "application": { "filter": "" }, "expr": "(rate(node_vmstat_pswpin{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=\"$host\"}[5m]) * 4096) + (rate(node_vmstat_pswpout{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=\"$host\"}[5m]) * 4096)", "format": "time_series", "functions": [], "group": { "filter": "" }, "host": { "filter": "" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "" }, "legendFormat": "Total", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "C", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Free swap space in %", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", "label": "Swap out (-) / Swap in (+)", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": { "Total": "#bf1b00" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Zabbix", "decimals": 2, "editable": true, "error": false, "fill": 2, "fillGradient": 0, "grid": {}, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 34 }, "id": 31, "legend": { "alignAsTable": true, "avg": false, "current": true, "hideEmpty": false, "max": false, "min": false, "rightSide": true, "show": true, "sort": "avg", "sortDesc": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [ { "targetBlank": true, "title": "Disk Performance", "url": "/dashboard/db/disk-performance?$__url_time_range&$__all_variables" } ], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "Disk Writes (Page Out)" }, { "alias": "Total" } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Disk*/" }, "calculatedInterval": "2s", "datasourceErrors": {}, "errors": {}, "expr": "rate(node_vmstat_pgpgin{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=\"$host\"}[5m]) * 1024", "format": "time_series", "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "interval": "$interval", "intervalFactor": 1, "item": { "filter": "/.*write rate*/" }, "legendFormat": "Disk Reads (Page In)", "metric": "", "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "step": 300, "table": { "skipEmptyValues": false }, "target": "", "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "I/O write", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", "label": "Page Out (-) / Page In (+)", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "cacheTimeout": null, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 34 }, "id": 69, "legend": { "avg": false, "current": true, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Disk*/" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "/.*read rate*/" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "IO read", "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 } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 40 }, "id": 42, "panels": [], "title": "Network", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 41 }, "id": 73, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Interface*/" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "/.*Bits received*/" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Incoming network ", "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 } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 41 }, "id": 75, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "application": { "filter": "/.*Interface*/" }, "functions": [], "group": { "filter": "$group" }, "host": { "filter": "$host" }, "item": { "filter": "/.*Bits sent*/" }, "mode": 0, "options": { "showDisabledItems": false, "skipEmptyValues": false }, "refId": "A", "resultFormat": "time_series", "table": { "skipEmptyValues": false }, "triggers": { "acknowledged": 2, "count": true, "minSeverity": 3 } } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Outgoing network", "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 } ], "yaxis": { "align": false, "alignLevel": null } } ], "refresh": "1d", "schemaVersion": 20, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": { "text": "Linux servers", "value": "Linux servers" }, "datasource": "Zabbix", "definition": "Zabbix - group", "hide": 0, "includeAll": false, "label": "Group", "multi": false, "name": "group", "options": [], "query": { "application": "", "group": "/.*/", "host": "", "item": "", "queryType": "group" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "192.168.56.190", "value": "192.168.56.190" }, "datasource": "Zabbix", "definition": "Zabbix - host", "hide": 0, "includeAll": false, "label": "Host", "multi": false, "name": "host", "options": [], "query": { "application": "", "group": "$group", "host": "/.*/", "item": "", "queryType": "host" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-12h", "to": "now" }, "timepicker": { "collapse": false, "enable": true, "hidden": false, "notice": false, "now": true, "refresh_intervals": [ "" ], "status": "Stable", "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ], "type": "timepicker" }, "timezone": "", "title": "System Overview", "uid": "6zIXEVqWz", "version": 8 }

你可能感兴趣的:(grafana dashboard模板)