Telegraf Installation


3. Telegraf Installation

Telegraf Installation Guide:


1) Add the InfluxData yum repository
cat <<EOF | sudo tee /etc/yum.repos.d/influxdata.repo
[influxdata]
name = InfluxData Repository - Stable
baseurl = https://repos.influxdata.com/stable/\$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdata-archive.key
EOF
Warning

Use influxdata-archive.key, not influxdata-archive_compat.key. The _compat key expired on 2026-01-18 and does not include the subkey (DA61C26A0585BD3B) that signs the current Telegraf packages, so yum install fails with a GPG check error. Do not work around it with --nogpgcheck; fix the gpgkey instead. If an old /etc/yum.repos.d/influxdb.repo exists, remove it.

2) Install the latest Telegraf
$ sudo yum install telegraf -y
$ telegraf --version

If you finish this step, please click the next button > on the right side of this page.