Utilise the official Ookla Speedtest CLI to export results to Influxdb via Telegraf to be displayed within Grafana.
Tested with Ubuntu 18.04.5 LTS, Telegraf 1.15.3, Grafana v7.2.1, Speedtest by Ookla 1.0.0.2
A sound understanding of TIG(Telegraf, Influxdb & Grafana) is assumed moving forward
- Install the the official Ookla Speedtest CLI onto your system (select whichever version suits your particular requirements)
- Add the configuration into telegraf, either
- store speedtest.conf under
/etc/telegraf/telegraf.d/speedtest.conf
* OR * - copy the config and add to your telegraf.conf
- store speedtest.conf under
- Restart telegraf (e.g. under Ubuntu
~$ sudo systemctl restart telegraf.service) - Import the provided json template into Grafana and setup the appropriate data source accordingly
- Select the appropriate host variable from the top left of the dashboard
- Happy trending!
p.s. be careful when setting the interval time, too often and you may risk being being blocked from utilising the service.
If you are having issues with Grafana and vendor/service provider logo's assuming you may need to follow the below link and make a minor modification to grafana.ini.
https://grafana.com/docs/grafana/latest/administration/configuration/#disable_sanitize_html
