curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
echo "deb https://repos.influxdata.com/ubuntu trusty stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
apt update
lwk@qwfys ~ $ apt install telegraf
sudo service telegraf start
Install Telegraf in Ubuntu 16.04 LTS
原文:http://blog.51cto.com/qwfys200/2074396