Info
Content

Telegraf on Debian

Telegraf can be easily downloaded by following the download instructions here. Make sure to select the right version for your distribution. At the time of this page's creation, Telegraf is at version 1.11.0.

1. Install apt-transport-https.

sudo apt-get update && sudo apt-get install apt-transport-https

2. Add the InfluxData key.

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/os-release
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

3. Update apt repositories and install Telegraf.

sudo apt-get update && sudo apt-get install telegraf

4. Edit telegraf.conf as needed.

sudo nano /etc/telegraf/telegraf.conf

5. Start Telegraf.

sudo systemctl start telegraf

Telegraf installation docs:

https://docs.influxdata.com/telegraf/v1.11/introduction/installation/

Back to top