(Last Updated On: November 21, 2018)

In this guide, I’ll show you how to Install Telegraf on Fedora 29 / Fedora 28. Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics to a time series database such as InfluxDB, Prometheus e.t.c.

The metrics collected by Telegraf agents running on servers will be pushed to InfluxDB. If you don’t have a running instance of InfluxDB, refer to our guides below on installing InfluxDB:

How to Install InfluxDB on Fedora 29 / Fedora 28

Install InfluxDB on Ubuntu 18.04 and Debian 9

Install Grafana and InfluxDB on CentOS 7

Below are the steps for installing InfluxDB on Fedora 29 / Fedora 28.

Step 1: Add Influxdata RPM repository

Influxdata provides the repository for installing Telegraf on  Fedora 29 / Fedora 28. Add it to your system first:

sudo vi /etc/yum.repos.d/influxdb.repo

Add:

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

Save the file and close it.

Step 2: Install Telegraf on Fedora 29 / Fedora 28

Install Telegraf on Fedora 29 / Fedora 28 by running below command in your terminal.

sudo dnf -y install telegraf

If you want to know the exact version of Telegraf installed, use:

$ rpm -qi telegraf
Name        : telegraf
Version     : 1.9.0
Release     : 1
Architecture: x86_64
Install Date: Wed 21 Nov 2018 07:43:24 PM UTC
Group       : default
Size        : 59782192
License     : MIT
Signature   : RSA/SHA256, Tue 20 Nov 2018 07:51:13 PM UTC, Key ID 684a14cf2582e0c5
Source RPM  : telegraf-1.9.0-1.src.rpm
Build Date  : Tue 20 Nov 2018 07:38:03 PM UTC
Build Host  : 20beba1192de
Relocations : / 
Packager    : [email protected]
Vendor      : InfluxData
URL         : https://github.com/influxdata/telegraf
Summary     : Plugin-driven server agent for reporting metrics into InfluxDB.
Description :
Plugin-driven server agent for reporting metrics into InfluxDB.

Step 3: Start and configure Telegraf on Fedora 29 / Fedora 28

Start telegraf service:

sudo systemctl start telegraf
sudo systemctl enable telegraf

Well, you made it, the next phase will be the configuration of Telegraf to pull and push your desired system metrics to InfluxDB. For this, you’ll find our guide below useful.

Monitor Linux System with Grafana and Telegraf

We have other monitoring tutorials such as:

Monitoring Ceph Cluster with Prometheus and Grafana

How to Monitor Redis Server with Prometheus and Grafana in 5 minutes

How to Monitor Linux Server Performance with Prometheus and Grafana in 5 minutes

How to Monitor BIND DNS server with Prometheus and Grafana

Monitoring MySQL / MariaDB with Prometheus in five minutes