Telegraf on Ubuntu

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. Add the InfluxData apt repository.

wget -qO- | sudo apt-key add -
source /etc/lsb-release
echo "deb${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

2. Update your apt repositories and install Telegraf.

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

3. Edit the Telegraf.conf file in /etc/telegraf/ as needed.

sudo nano /etc/telegraf/telegraf.conf

4. Start Telegraf.

sudo systemctl start telegraf

5. Verify Telegraf is running.

sudo systemctl status telegraf

Telegraf installation docs:


Back to top