Install Telegraf on Fedora 30/Fedora 29

0
253

In this guide, we are going to learn how to install Telegraf on Fedora 30/Fedora 29. Telegraf is a plugin-driven server agent that is used for collecting and sending metrics and events from databases, systems, and IoT sensors. It one of the major components of TICK stack which is an acronym for Telegraf, InfluxDB (time series DB), Chronograf (interface for InfluxDB) and Kapacitor (real time streaming data processing engine).

Install Telegraf on Fedora 30/Fedora 29

Well, to install Telegraf on Fedora 30/29, you can either use the PRM package or simply install it from InfluxDB repo. However, to use the InfluxDB repo, you need to create the InfluxDB repository on Fedora 30/29.

Check how to install InfluxDB on Fedora 30 in our guide by following the link below;

Install Telegraf on Fedora 30/Fedora 29

Install Telegraf using RPM package

To install Telegraf on Fedora 30/29 using RPM package, navigate to Telegraf’s downloads page and grab an RPM binary. You can simply fire up your terminal and execute the command below;

wget https://dl.influxdata.com/telegraf/releases/telegraf-1.10.3-1.x86_64.rpm

Once you have it downloaded, then you can simply install it locally using DNF package manager which will sort any dependency issue, if there is any;

dnf localinstall telegraf-1.10.3-1.x86_64.rpm

Install Telegraf on from InfluxDB Repo

Add InfluxDB Repo

Create InfluxDB repo with the content below;

vim /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL 7
baseurl = https://repos.influxdata.com/rhel/7Server/x86_64/stable/
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key

Once you have the repo in place, then install Telegraf by running the command below;

dnf install telegraf

Once the installation is done, you can start and enable Telegraf to run on system boot;

systemctl start telegraf
systemctl enable telegraf

Check the status of Telegraf;

systemctl status telegraf
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
   Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-05-06 14:25:12 EAT; 16s ago
     Docs: https://github.com/influxdata/telegraf
 Main PID: 9147 (telegraf)
    Tasks: 8 (limit: 1144)
   Memory: 23.6M
   CGroup: /system.slice/telegraf.service
           └─9147 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d

Great. You have Telegraf up and running on your Fedora 30/39 server. We will cover the configuration of Telegraf in our next guide.

LEAVE A REPLY

Please enter your comment!
Please enter your name here