Using official SpeedTest.net cli for telegraf
Tested with Ubuntu 18.04.4 LTS, Telegraf 1.14.1
HOWTO:
- Install the official SpeedTest CLI from SpeedTest.net - https://www.speedtest.net/apps/cli
- Run 'speedtest' once as telegraf user (to accept the license)
- Add the configuration into telegraf, either
- store speedtest.conf under /etc/telegraf/telegraf.d
* OR * - copy the config and add to your telegraf.conf
- store speedtest.conf under /etc/telegraf/telegraf.d
- Restart telegraf (e.g. under Ubuntu
sudo systemctl restart telegraf
)
Most encountered issue is when telegraf excuting speedtest
couldn't find the 'license' file, check your permission.
Alternatively, see #1 and #7 submitted by users.
Optionally, install Grafana dashboard #12428
https://grafana.com/grafana/dashboards/12428
Enjoy!
p.s. Do not set the interval too short or you may get banned...