Info
Content

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- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${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:

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

 

Back to top