瀏覽代碼

Update the grafana dashboard for speedtest

- Change time on the dashboard to a static value 5m

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 3 年之前
父節點
當前提交
72edcccd8a
共有 1 個文件被更改,包括 69 次插入74 次删除
  1. 69 74
      grafana/provisioning/dashboards/connectivity/speedtest.json

+ 69 - 74
grafana/provisioning/dashboards/connectivity/speedtest.json

@@ -9,12 +9,13 @@
       "pluginName": "InfluxDB"
     }
   ],
+  "__elements": [],
   "__requires": [
     {
       "type": "grafana",
       "id": "grafana",
       "name": "Grafana",
-      "version": "7.5.0-pre"
+      "version": "8.4.3"
     },
     {
       "type": "panel",
@@ -44,18 +45,24 @@
         "hide": true,
         "iconColor": "rgba(0, 211, 255, 1)",
         "name": "Annotations & Alerts",
+        "target": {
+          "limit": 100,
+          "matchAny": false,
+          "tags": [],
+          "type": "dashboard"
+        },
         "type": "dashboard"
       }
     ]
   },
   "editable": true,
-  "gnetId": null,
+  "fiscalYearStartMonth": 0,
   "graphTooltip": 0,
   "id": null,
   "links": [],
+  "liveNow": false,
   "panels": [
     {
-      "datasource": null,
       "gridPos": {
         "h": 1,
         "w": 24,
@@ -67,13 +74,15 @@
       "type": "row"
     },
     {
-      "datasource": "InfluxDB-speedtest",
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
+      },
       "fieldConfig": {
         "defaults": {
           "color": {
             "mode": "thresholds"
           },
-          "custom": {},
           "mappings": [],
           "thresholds": {
             "mode": "absolute",
@@ -119,7 +128,7 @@
         "text": {},
         "textMode": "auto"
       },
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "targets": [
         {
           "groupBy": [
@@ -152,19 +161,19 @@
           "tags": []
         }
       ],
-      "timeFrom": null,
-      "timeShift": null,
       "title": "Ping",
       "type": "stat"
     },
     {
-      "datasource": "InfluxDB-speedtest",
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
+      },
       "fieldConfig": {
         "defaults": {
           "color": {
             "mode": "thresholds"
           },
-          "custom": {},
           "mappings": [],
           "thresholds": {
             "mode": "absolute",
@@ -217,7 +226,7 @@
         "text": {},
         "textMode": "auto"
       },
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "targets": [
         {
           "groupBy": [
@@ -256,19 +265,19 @@
           "tags": []
         }
       ],
-      "timeFrom": null,
-      "timeShift": null,
       "title": "Download",
       "type": "stat"
     },
     {
-      "datasource": "InfluxDB-speedtest",
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
+      },
       "fieldConfig": {
         "defaults": {
           "color": {
             "mode": "thresholds"
           },
-          "custom": {},
           "mappings": [],
           "thresholds": {
             "mode": "absolute",
@@ -321,7 +330,7 @@
         "text": {},
         "textMode": "auto"
       },
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "targets": [
         {
           "groupBy": [
@@ -360,8 +369,6 @@
           "tags": []
         }
       ],
-      "timeFrom": null,
-      "timeShift": null,
       "title": "Upload",
       "type": "stat"
     },
@@ -374,10 +381,12 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": "InfluxDB-speedtest",
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
+      },
       "fieldConfig": {
         "defaults": {
-          "custom": {},
           "unit": "Mbits"
         },
         "overrides": []
@@ -404,12 +413,12 @@
       },
       "lines": true,
       "linewidth": 2,
-      "nullPointMode": "connected",
+      "nullPointMode": "null",
       "options": {
         "alertThreshold": true
       },
       "percentage": false,
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "pointradius": 2,
       "points": true,
       "renderer": "flot",
@@ -420,10 +429,14 @@
       "targets": [
         {
           "alias": "download",
+          "datasource": {
+            "type": "influxdb",
+            "uid": "${DS_INFLUXDB-SPEEDTEST}"
+          },
           "groupBy": [
             {
               "params": [
-                "$__interval"
+                "5m"
               ],
               "type": "time"
             }
@@ -457,10 +470,14 @@
         },
         {
           "alias": "upload",
+          "datasource": {
+            "type": "influxdb",
+            "uid": "${DS_INFLUXDB-SPEEDTEST}"
+          },
           "groupBy": [
             {
               "params": [
-                "$__interval"
+                "5m"
               ],
               "type": "time"
             }
@@ -503,9 +520,7 @@
           "yaxis": "left"
         }
       ],
-      "timeFrom": null,
       "timeRegions": [],
-      "timeShift": null,
       "title": "Bandwidth",
       "tooltip": {
         "shared": true,
@@ -514,9 +529,7 @@
       },
       "type": "graph",
       "xaxis": {
-        "buckets": null,
         "mode": "time",
-        "name": null,
         "show": true,
         "values": []
       },
@@ -525,7 +538,6 @@
           "format": "Mbits",
           "label": "bandwidth",
           "logBase": 1,
-          "max": null,
           "min": "0",
           "show": true
         },
@@ -533,14 +545,12 @@
           "format": "ms",
           "label": "ping",
           "logBase": 1,
-          "max": null,
           "min": "0",
           "show": false
         }
       ],
       "yaxis": {
-        "align": false,
-        "alignLevel": null
+        "align": false
       }
     },
     {
@@ -550,12 +560,9 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": "InfluxDB-speedtest",
-      "fieldConfig": {
-        "defaults": {
-          "custom": {}
-        },
-        "overrides": []
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
       },
       "fill": 1,
       "fillGradient": 5,
@@ -579,12 +586,12 @@
       },
       "lines": true,
       "linewidth": 2,
-      "nullPointMode": "connected",
+      "nullPointMode": "null",
       "options": {
         "alertThreshold": true
       },
       "percentage": false,
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "pointradius": 2,
       "points": true,
       "renderer": "flot",
@@ -595,10 +602,14 @@
       "targets": [
         {
           "alias": "ping",
+          "datasource": {
+            "type": "influxdb",
+            "uid": "${DS_INFLUXDB-SPEEDTEST}"
+          },
           "groupBy": [
             {
               "params": [
-                "$__interval"
+                "5m"
               ],
               "type": "time"
             }
@@ -626,9 +637,7 @@
         }
       ],
       "thresholds": [],
-      "timeFrom": null,
       "timeRegions": [],
-      "timeShift": null,
       "title": "Ping",
       "tooltip": {
         "shared": true,
@@ -637,9 +646,7 @@
       },
       "type": "graph",
       "xaxis": {
-        "buckets": null,
         "mode": "time",
-        "name": null,
         "show": true,
         "values": []
       },
@@ -648,22 +655,17 @@
           "format": "ms",
           "label": "latency",
           "logBase": 1,
-          "max": null,
           "min": "0",
           "show": true
         },
         {
           "format": "short",
-          "label": null,
           "logBase": 1,
-          "max": null,
-          "min": null,
           "show": true
         }
       ],
       "yaxis": {
-        "align": false,
-        "alignLevel": null
+        "align": false
       }
     },
     {
@@ -671,16 +673,13 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": "InfluxDB-speedtest",
+      "datasource": {
+        "type": "influxdb",
+        "uid": "${DS_INFLUXDB-SPEEDTEST}"
+      },
       "description": "",
       "fieldConfig": {
         "defaults": {
-          "color": {},
-          "custom": {},
-          "thresholds": {
-            "mode": "absolute",
-            "steps": []
-          },
           "unit": "short"
         },
         "overrides": []
@@ -712,7 +711,7 @@
         "alertThreshold": true
       },
       "percentage": false,
-      "pluginVersion": "7.5.0-pre",
+      "pluginVersion": "8.4.3",
       "pointradius": 2,
       "points": true,
       "renderer": "flot",
@@ -722,10 +721,14 @@
       "steppedLine": false,
       "targets": [
         {
+          "datasource": {
+            "type": "influxdb",
+            "uid": "${DS_INFLUXDB-SPEEDTEST}"
+          },
           "groupBy": [
             {
               "params": [
-                "$__interval"
+                "5m"
               ],
               "type": "time"
             },
@@ -760,9 +763,7 @@
         }
       ],
       "thresholds": [],
-      "timeFrom": null,
       "timeRegions": [],
-      "timeShift": null,
       "title": "Packet Loss",
       "tooltip": {
         "shared": true,
@@ -771,9 +772,7 @@
       },
       "type": "graph",
       "xaxis": {
-        "buckets": null,
         "mode": "time",
-        "name": null,
         "show": true,
         "values": []
       },
@@ -783,26 +782,21 @@
           "label": "Percentage",
           "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
+        "align": false
       }
     }
   ],
-  "refresh": "1m",
-  "schemaVersion": 27,
+  "refresh": "5m",
+  "schemaVersion": 35,
   "style": "dark",
   "tags": [],
   "templating": {
@@ -826,5 +820,6 @@
   "timezone": "browser",
   "title": "SpeedTest",
   "uid": "Ha9ke1iRj",
-  "version": 8
-}
+  "version": 20,
+  "weekStart": ""
+}