Skip to content

Instantly share code, notes, and snippets.

@simonhearne
Last active February 3, 2024 17:54
Show Gist options
  • Save simonhearne/1b2b62e818fe6e097f8f8b2cbd6f2365 to your computer and use it in GitHub Desktop.
Save simonhearne/1b2b62e818fe6e097f8f8b2cbd6f2365 to your computer and use it in GitHub Desktop.
{
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 5,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": true,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Ping (ms)",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "Ping (ms)",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "speedtest",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"ping"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
},
{
"alias": "Download (Mbps)",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "speed",
"orderByTime": "ASC",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"download"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
" / 1000000"
],
"type": "math"
}
]
],
"tags": []
},
{
"alias": "Upload (Mbps)",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "speed",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"upload"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
" / 1000000"
],
"type": "math"
}
]
],
"tags": []
},
{
"alias": "4h Avg Download (Mbps)",
"groupBy": [
{
"params": [
"4h"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "speed",
"orderByTime": "ASC",
"policy": "default",
"refId": "D",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"download"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
" / 1000000"
],
"type": "math"
}
]
],
"tags": []
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Network Quality",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Mbits",
"label": "Speed",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "ms",
"label": "Ping",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 21,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Network",
"uid": "_gyrT3zgk",
"version": 5
}
@JdenHartog
Copy link

Hi,
I think attribute "measurement" should have value "speedtest" everywhere for your tutorial (https://simonhearne.com/2020/pi-speedtest-influx) to work. Thank you for your tutorials!

@aoturoa
Copy link

aoturoa commented Jan 16, 2021

Hi simon, thank you so much for your clear Tutorial.
I noticed when using your Grafana dashboard, 'download' and 'upload' where not showing in the graph.
Looking further, I noticed you revised the code on 6 May 2020.
You changed "measurement": "speed", with "measurement": "speedtest", for the 'ping' query ... but probably forgot changing the value for the 'download' and 'upload' queries.
Keep it up. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment