Installing InfluxDb and Telegraf

In this article I will show you steps for Installing InfluxDb and Telegraf. If there is any query please write in the comment box and I will be happy to answer.

Steps for Installing InfluxDB on CentOS

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

Installing and Starting InfluxDB

sudo yum install influxdb
sudo service influxdb start

Steps to Install Telegraf on CentOS

 cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
  [influxdb]
  name = InfluxDB Repository - RHEL \$releasever
  baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
  enabled = 1
  gpgcheck = 1
  gpgkey = https://repos.influxdata.com/influxdb.key
  EOF

Installing and Starting Telegraf:

 sudo yum install telegraf
 sudo service telegraf start

I hope you liked this article about Installing InfluxDb and Telegraf. You can continue reading more about Grafana here.

Get any of the courses at a very special price. The offer is available only for a limited time.

2 thoughts on “Installing InfluxDb and Telegraf”

  1. Is this for Centos 8 and InfluxDB2 ? Or in general for all versions ?

Comments are closed.

%d bloggers like this: