How to Install Telegraf on Fedora 35/34/33/32/31

Posted on 74 views

In this guide, I’ll show you how to Install Telegraf on Fedora 35/34/33/32/31. 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:

Below are the steps for installing InfluxDB on Fedora.

Step 1: Add Influxdata RPM repository

Influxdata provides the repository for installing Telegraf on Fedora. Add it to your system first by running the command below.

cat<

Step 2: Install Telegraf on Fedora 35/34/33/32/31

Install Telegraf on Fedora 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.21.2
Release     : 1
Architecture: x86_64
Install Date: Thu 20 Jan 2022 12:01:30 AM EAT
Group       : default
Size        : 134250581
License     : MIT
Signature   : RSA/SHA256, Wed 05 Jan 2022 09:45:52 PM EAT, Key ID 684a14cf2582e0c5
Source RPM  : telegraf-1.21.2-1.src.rpm
Build Date  : Wed 05 Jan 2022 08:38:19 PM EAT
Build Host  : 77f33754e7fc
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 35/34/33/32/31

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.

coffee

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.