Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Telegraf Speedtest
curl -sL | sudo apt-key add -
echo "deb stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update
sudo apt install -y telegraf
# Add this to /etc/telegraf/telegraf.conf
commands = [
"/usr/local/bin/speedtest-cli --json"
timeout = "1m"
interval = "10m"
name_suffix = "_speedtest"
data_format = "json"
tag_keys = [
wget -O speedtest-cli
chmod a+x speedtest-cli
sudo mv speedtest-cli /usr/local/bin
sudo systemctl enable telegraf
sudo systemctl restart telegraf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment