diff --git a/GrafanaDash-SpeedTests.json b/GrafanaDash-SpeedTests.json index 093fc09..ae905bc 100644 --- a/GrafanaDash-SpeedTests.json +++ b/GrafanaDash-SpeedTests.json @@ -59,262 +59,9 @@ "gnetId": 13053, "graphTooltip": 0, "id": null, - "iteration": 1610865850926, + "iteration": 1610934200933, "links": [], "panels": [ - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 129, - "panels": [ - { - "datasource": "${DS_INFLUXDB-SPEEDTESTS}", - "fieldConfig": { - "defaults": { - "custom": { - "align": "center", - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.width", - "value": 175 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SPEEDTEST.net URL" - }, - "properties": [ - { - "id": "custom.width", - "value": 525 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 127, - "options": { - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Time" - } - ] - }, - "pluginVersion": "7.3.6", - "targets": [ - { - "groupBy": [ - { - "params": [ - "speedtest_url" - ], - "type": "tag" - } - ], - "hide": false, - "measurement": "download", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"bandwidth\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter GROUP BY \"speedtest_url\"", - "rawQuery": false, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "bandwidth" - ], - "type": "field" - }, - { - "params": [ - "Down Mbps" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "namespace", - "operator": "=~", - "value": "/^$namespace$/" - } - ] - }, - { - "groupBy": [ - { - "params": [ - "speedtest_url" - ], - "type": "tag" - } - ], - "measurement": "upload", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "bandwidth" - ], - "type": "field" - }, - { - "params": [ - "Up Mbps" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "namespace", - "operator": "=~", - "value": "/^$namespace$/" - } - ] - }, - { - "groupBy": [ - { - "params": [ - "speedtest_url" - ], - "type": "tag" - } - ], - "measurement": "ping", - "orderByTime": "ASC", - "policy": "default", - "queryType": "randomWalk", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "latency" - ], - "type": "field" - }, - { - "params": [ - "Latency ms" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "jitter" - ], - "type": "field" - }, - { - "params": [ - "Jitter ms" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "namespace", - "operator": "=~", - "value": "/^$namespace$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Panel Title", - "transformations": [ - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "Down Mbps": "", - "speedtest_url": "SPEEDTEST.net URL" - } - } - } - ], - "type": "table" - } - ], - "title": "Raw Results & Links", - "type": "row" - }, - { - "collapsed": false, - "datasource": "${DS_INFLUXDB-SPEEDTESTS}", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 108, - "panels": [], - "title": "SpeedTests", - "type": "row" - }, { "datasource": "${DS_INFLUXDB-SPEEDTESTS}", "fieldConfig": { @@ -346,7 +93,7 @@ "h": 4, "w": 6, "x": 0, - "y": 2 + "y": 0 }, "id": 116, "options": { @@ -444,7 +191,7 @@ "h": 4, "w": 6, "x": 6, - "y": 2 + "y": 0 }, "id": 118, "interval": "", @@ -539,7 +286,7 @@ "h": 4, "w": 6, "x": 12, - "y": 2 + "y": 0 }, "id": 120, "options": { @@ -638,7 +385,7 @@ "h": 4, "w": 6, "x": 18, - "y": 2 + "y": 0 }, "id": 122, "options": { @@ -728,7 +475,7 @@ "h": 4, "w": 6, "x": 0, - "y": 6 + "y": 4 }, "id": 124, "interval": "1h", @@ -815,7 +562,7 @@ "h": 8, "w": 18, "x": 6, - "y": 6 + "y": 4 }, "hiddenSeries": false, "id": 104, @@ -1011,7 +758,7 @@ "h": 4, "w": 6, "x": 0, - "y": 10 + "y": 8 }, "id": 125, "interval": "1h", @@ -1079,14 +826,27 @@ "title": "Upload Size Total", "type": "stat" }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 137, + "panels": [], + "title": "Leaders (Green) & Laggers (Yellow)", + "type": "row" + }, { "datasource": "${DS_INFLUXDB-SPEEDTESTS}", - "description": "Shows the avg speeds received by test site", + "description": "", "fieldConfig": { "defaults": { "custom": { "align": "center", - "displayMode": "color-background", "filterable": false }, "mappings": [], @@ -1098,290 +858,75 @@ "value": null } ] - }, - "unit": "Mbits" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "Ping" - }, - "properties": [ - { - "id": "unit", - "value": "ms" - }, - { - "id": "thresholds", - "value": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 25 - }, - { - "color": "red", - "value": 50 - } - ] - } - }, - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "max", - "value": 100 - }, - { - "id": "custom.width" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Test Count" - }, - "properties": [ - { - "id": "unit", - "value": "none" - }, - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "max", - "value": 25 - }, - { - "id": "custom.width", - "value": 150 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Location" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-text" - }, - { - "id": "custom.width", - "value": 180 - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Download Avg" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 50 - }, - { - "color": "green", - "value": 100 - } - ] - } - }, - { - "id": "max" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Upload Avg" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 10 - }, - { - "color": "green", - "value": 50 - } - ] - } - }, - { - "id": "max" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Server" + "options": "Time" }, "properties": [ { "id": "custom.width", - "value": 300 + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SPEEDTEST.net URL" + }, + "properties": [ + { + "id": "custom.width", + "value": 525 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Down Mbps" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-green", + "mode": "fixed" + } }, { - "id": "custom.align", - "value": "left" + "id": "custom.displayMode", + "value": "color-background" } ] } ] }, "gridPos": { - "h": 8, + "h": 3, "w": 24, "x": 0, - "y": 14 + "y": 13 }, - "id": 114, + "id": 127, "options": { + "frameIndex": 0, "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Ping" - } - ] + "sortBy": [] }, "pluginVersion": "7.3.6", "targets": [ { - "groupBy": [ - { - "params": [ - "server_name" - ], - "type": "tag" - }, - { - "params": [ - "server_location" - ], - "type": "tag" - }, - { - "params": [ - "server_id" - ], - "type": "tag" - } - ], + "groupBy": [], + "hide": false, "measurement": "download", "orderByTime": "ASC", "policy": "default", - "query": "SELECT mean(\"bandwidth\") AS \"Download Avg\" FROM \"download\" WHERE $timeFilter GROUP BY \"server_name\", \"server_location\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "bandwidth" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "Download Avg" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "bandwidth" - ], - "type": "field" - }, - { - "params": [], - "type": "count" - }, - { - "params": [ - "Test Count" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "namespace", - "operator": "=~", - "value": "/^$namespace$/" - } - ] - }, - { - "groupBy": [ - { - "params": [ - "server_id" - ], - "type": "tag" - } - ], - "measurement": "upload", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"bandwidth\") AS \"Upload Avg\" FROM \"upload\" WHERE $timeFilter GROUP BY \"server_id\"", + "query": "SELECT max(\"bandwidth\") AS \"Down Mbps\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter", "rawQuery": false, "refId": "B", "resultFormat": "table", @@ -1395,11 +940,11 @@ }, { "params": [], - "type": "mean" + "type": "max" }, { "params": [ - "Upload Avg" + "Down Mbps" ], "type": "alias" } @@ -1417,17 +962,56 @@ "groupBy": [ { "params": [ - "server_id" + "speedtest_url" ], "type": "tag" } ], + "hide": false, + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Up Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, "measurement": "ping", "orderByTime": "ASC", "policy": "default", - "query": "SELECT mean(\"bandwidth\") AS \"Upload Avg\" FROM \"upload\" WHERE $timeFilter GROUP BY \"server_id\"", - "rawQuery": false, - "refId": "C", + "queryType": "randomWalk", + "refId": "A", "resultFormat": "table", "select": [ [ @@ -1438,12 +1022,22 @@ "type": "field" }, { - "params": [], - "type": "mean" + "params": [ + "Latency ms" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "jitter" + ], + "type": "field" }, { "params": [ - "Ping" + "Jitter ms" ], "type": "alias" } @@ -1460,48 +1054,1488 @@ ], "timeFrom": null, "timeShift": null, - "title": "Avg. Speed by test server", + "title": "", "transformations": [ { - "id": "seriesToColumns", + "id": "merge", + "options": {} + }, + { + "id": "reduce", "options": { - "byField": "server_id" + "includeTimeField": true, + "mode": "reduceFields", + "reducers": [ + "firstNotNull" + ] } }, { "id": "organize", "options": { "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "Time 3": true, - "server_id": true + "Time": false }, "indexByName": { - "Download Avg": 3, - "Ping": 2, - "Test Count": 7, - "Time 1": 6, - "Time 2": 8, - "Time 3": 9, - "Upload Avg": 4, - "server_id": 5, - "server_location": 1, - "server_name": 0 + "Down Mbps": 2, + "Jitter ms": 5, + "Latency ms": 4, + "Time": 0, + "Up Mbps": 3, + "speedtest_url": 1 }, "renameByName": { - "Time": "", - "server_location": "Location", - "server_name": "Server" + "Down Mbps": "", + "speedtest_url": "SPEEDTEST.net URL" } } } ], "type": "table" + }, + { + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SPEEDTEST.net URL" + }, + "properties": [ + { + "id": "custom.width", + "value": 525 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Latency ms" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-green", + "mode": "fixed" + } + }, + { + "id": "custom.displayMode", + "value": "color-background" + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 16 + }, + "id": 134, + "options": { + "frameIndex": 0, + "showHeader": false, + "sortBy": [] + }, + "pluginVersion": "7.3.6", + "targets": [ + { + "groupBy": [], + "hide": false, + "measurement": "ping", + "orderByTime": "ASC", + "policy": "default", + "queryType": "randomWalk", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "latency" + ], + "type": "field" + }, + { + "params": [], + "type": "min" + }, + { + "params": [ + "Latency ms" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "jitter" + ], + "type": "field" + }, + { + "params": [ + "Jitter ms" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "download", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"bandwidth\") AS \"Down Mbps\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter", + "rawQuery": false, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Down Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Up Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "reduce", + "options": { + "includeTimeField": true, + "mode": "reduceFields", + "reducers": [ + "firstNotNull" + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false + }, + "indexByName": { + "Down Mbps": 2, + "Jitter ms": 5, + "Latency ms": 4, + "Time": 0, + "Up Mbps": 3, + "speedtest_url": 1 + }, + "renameByName": { + "Down Mbps": "", + "speedtest_url": "SPEEDTEST.net URL" + } + } + } + ], + "type": "table" + }, + { + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SPEEDTEST.net URL" + }, + "properties": [ + { + "id": "custom.width", + "value": 525 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Down Mbps" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + } + }, + { + "id": "custom.displayMode", + "value": "color-background" + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 131, + "options": { + "frameIndex": 0, + "showHeader": false, + "sortBy": [] + }, + "pluginVersion": "7.3.6", + "targets": [ + { + "groupBy": [], + "hide": false, + "measurement": "download", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"bandwidth\") AS \"Down Mbps\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter", + "rawQuery": false, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [], + "type": "min" + }, + { + "params": [ + "Down Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Up Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "ping", + "orderByTime": "ASC", + "policy": "default", + "queryType": "randomWalk", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "latency" + ], + "type": "field" + }, + { + "params": [ + "Latency ms" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "jitter" + ], + "type": "field" + }, + { + "params": [ + "Jitter ms" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "reduce", + "options": { + "includeTimeField": true, + "mode": "reduceFields", + "reducers": [ + "firstNotNull" + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false + }, + "indexByName": { + "Down Mbps": 2, + "Jitter ms": 5, + "Latency ms": 4, + "Time": 0, + "Up Mbps": 3, + "speedtest_url": 1 + }, + "renameByName": { + "Down Mbps": "", + "speedtest_url": "SPEEDTEST.net URL" + } + } + } + ], + "type": "table" + }, + { + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SPEEDTEST.net URL" + }, + "properties": [ + { + "id": "custom.width", + "value": 525 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Latency ms" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + } + }, + { + "id": "custom.displayMode", + "value": "color-background" + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 20 + }, + "id": 135, + "options": { + "frameIndex": 0, + "showHeader": false, + "sortBy": [] + }, + "pluginVersion": "7.3.6", + "targets": [ + { + "groupBy": [], + "hide": false, + "measurement": "ping", + "orderByTime": "ASC", + "policy": "default", + "queryType": "randomWalk", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "latency" + ], + "type": "field" + }, + { + "params": [], + "type": "max" + }, + { + "params": [ + "Latency ms" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "jitter" + ], + "type": "field" + }, + { + "params": [ + "Jitter ms" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "download", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"bandwidth\") AS \"Down Mbps\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter", + "rawQuery": false, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Down Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Up Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "reduce", + "options": { + "includeTimeField": true, + "mode": "reduceFields", + "reducers": [ + "firstNotNull" + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false + }, + "indexByName": { + "Down Mbps": 2, + "Jitter ms": 5, + "Latency ms": 4, + "Time": 0, + "Up Mbps": 3, + "speedtest_url": 1 + }, + "renameByName": { + "Down Mbps": "", + "speedtest_url": "SPEEDTEST.net URL" + } + } + } + ], + "type": "table" + }, + { + "collapsed": true, + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 108, + "panels": [ + { + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "description": "Shows the avg speeds received by test site", + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "displayMode": "color-background", + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Mbits" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Ping" + }, + "properties": [ + { + "id": "unit", + "value": "ms" + }, + { + "id": "thresholds", + "value": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 25 + }, + { + "color": "red", + "value": 50 + } + ] + } + }, + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "max", + "value": 100 + }, + { + "id": "custom.width" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Test Count" + }, + "properties": [ + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "max", + "value": 25 + }, + { + "id": "custom.width", + "value": 150 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Location" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-text" + }, + { + "id": "custom.width", + "value": 180 + }, + { + "id": "custom.align", + "value": "left" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Download Avg" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 50 + }, + { + "color": "green", + "value": 100 + } + ] + } + }, + { + "id": "max" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Upload Avg" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 10 + }, + { + "color": "green", + "value": 50 + } + ] + } + }, + { + "id": "max" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Server" + }, + "properties": [ + { + "id": "custom.width", + "value": 300 + }, + { + "id": "custom.align", + "value": "left" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 114, + "options": { + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Ping" + } + ] + }, + "pluginVersion": "7.3.6", + "targets": [ + { + "groupBy": [ + { + "params": [ + "server_name" + ], + "type": "tag" + }, + { + "params": [ + "server_location" + ], + "type": "tag" + }, + { + "params": [ + "server_id" + ], + "type": "tag" + } + ], + "measurement": "download", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"bandwidth\") AS \"Download Avg\" FROM \"download\" WHERE $timeFilter GROUP BY \"server_name\", \"server_location\"", + "rawQuery": false, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "Download Avg" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [], + "type": "count" + }, + { + "params": [ + "Test Count" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "server_id" + ], + "type": "tag" + } + ], + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"bandwidth\") AS \"Upload Avg\" FROM \"upload\" WHERE $timeFilter GROUP BY \"server_id\"", + "rawQuery": false, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "Upload Avg" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "server_id" + ], + "type": "tag" + } + ], + "measurement": "ping", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"bandwidth\") AS \"Upload Avg\" FROM \"upload\" WHERE $timeFilter GROUP BY \"server_id\"", + "rawQuery": false, + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "latency" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "Ping" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "server_id" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "server_id": true + }, + "indexByName": { + "Download Avg": 3, + "Ping": 2, + "Test Count": 7, + "Time 1": 6, + "Time 2": 8, + "Time 3": 9, + "Upload Avg": 4, + "server_id": 5, + "server_location": 1, + "server_name": 0 + }, + "renameByName": { + "Time": "", + "server_location": "Location", + "server_name": "Server" + } + } + } + ], + "type": "table" + } + ], + "title": "Averages by Test Server", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 129, + "panels": [ + { + "datasource": "${DS_INFLUXDB-SPEEDTESTS}", + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SPEEDTEST.net URL" + }, + "properties": [ + { + "id": "custom.width", + "value": 525 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 36 + }, + "id": 130, + "options": { + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Down Mbps" + } + ] + }, + "pluginVersion": "7.3.6", + "targets": [ + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "download", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"bandwidth\") AS \"Down Mbps\" FROM \"download\" WHERE (\"namespace\" =~ /^$namespace$/) AND $timeFilter", + "rawQuery": false, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Down Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "upload", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "bandwidth" + ], + "type": "field" + }, + { + "params": [ + "Up Mbps" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + }, + { + "groupBy": [ + { + "params": [ + "speedtest_url" + ], + "type": "tag" + } + ], + "hide": false, + "measurement": "ping", + "orderByTime": "ASC", + "policy": "default", + "queryType": "randomWalk", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "latency" + ], + "type": "field" + }, + { + "params": [ + "Latency ms" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "jitter" + ], + "type": "field" + }, + { + "params": [ + "Jitter ms" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "namespace", + "operator": "=~", + "value": "/^$namespace$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "All Raw", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false + }, + "indexByName": { + "Down Mbps": 2, + "Jitter ms": 5, + "Latency ms": 4, + "Time": 0, + "Up Mbps": 3, + "speedtest_url": 1 + }, + "renameByName": { + "Down Mbps": "", + "speedtest_url": "SPEEDTEST.net URL" + } + } + } + ], + "type": "table" + } + ], + "title": "Raw Results & Links", + "type": "row" } ], - "refresh": false, + "refresh": "1m", "schemaVersion": 26, "style": "dark", "tags": [], @@ -1533,7 +2567,7 @@ ] }, "time": { - "from": "now-6h", + "from": "now-2d", "to": "now" }, "timepicker": { @@ -1553,5 +2587,5 @@ "timezone": "", "title": "SpeedTests", "uid": "kLXTiedGz", - "version": 9 + "version": 16 }