Smokeping Speedtest Gauges
Display speedtest data from Smokeping as Gauges
Display Smokeping data for Speedtest measurements from influxdb as Gauges (top limit is 1Gbps).
Details here: https://adrianpopagh.blogspot.com/2020/06/smokeping-influxdb-export-docker-slaves.html
{
  "__inputs": [
    {
      "name": "DS_INFLUXDB-SMOKEPING",
      "label": "InfluxDB-Smokeping",
      "description": "Name of your InfluxDB data source that holds Smokeping data",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.6.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12462,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1591954727775,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_INFLUXDB-SMOKEPING}",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "links": [],
      "maxPerRow": 4,
      "options": {
        "fieldOptions": {
          "calcs": [
            "max"
          ],
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 1000000000,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "semi-dark-red",
                  "value": null
                },
                {
                  "color": "#EAB839",
                  "value": 330000000
                },
                {
                  "color": "dark-green",
                  "value": 660000000
                }
              ]
            },
            "title": "",
            "unit": "bps"
          },
          "overrides": [],
          "thresholds": [
            {
              "color": "semi-dark-red",
              "index": 0,
              "value": null
            },
            {
              "color": "#EAB839",
              "index": 1,
              "value": 150000000
            },
            {
              "color": "dark-green",
              "index": 2,
              "value": 650000000
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.6.2",
      "repeat": "slave",
      "repeatDirection": "h",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "1h"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/speedtestcli-$measurement/",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "max"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "slave",
              "operator": "=~",
              "value": "/^$slave$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "$slave speedtest $measurement",
      "transparent": true,
      "type": "gauge"
    }
  ],
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "download",
          "value": "download"
        },
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "measurement",
        "options": [
          {
            "selected": true,
            "text": "download",
            "value": "download"
          },
          {
            "selected": false,
            "text": "upload",
            "value": "upload"
          }
        ],
        "query": "download, upload",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "allValue": ".*",
        "current": {},
        "datasource": "${DS_INFLUXDB-SMOKEPING}",
        "definition": "SHOW TAG VALUES from \"speedtestcli-$measurement\" WITH KEY = \"slave\"; ",
        "hide": 0,
        "includeAll": true,
        "label": "Slave",
        "multi": true,
        "name": "slave",
        "options": [],
        "query": "SHOW TAG VALUES from \"speedtestcli-$measurement\" WITH KEY = \"slave\"; ",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Smokeping Speedtest Gauges",
  "uid": "7CUCnFzMk",
  "version": 11,
  "description": "Display speedtest data from Smokeping as Gauges"
}