Install telegraf on linux system1 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Telegraf is a plugin-driven server agent for collecting and sending metrics and events from databases, systems, and IoT sensors.

Telegraf is written in Go and compiles into a single binary with no external dependencies, and requires a very minimal memory footprint.

Ubuntu

Add the repository

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

Install telegraf

sudo apt-get update && sudo apt-get install telegraf
sudo service telegraf start

 

Centos

Add the repository

 

vi /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

 

Install telegraf and start the service

 

sudo yum install telegraf
sudo service telegraf start

 

Happy Learning 🙂

© 2020, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

2 Thoughts to “Install telegraf on linux system1 min read

  1. Hi Bro,

    How to monitor databases using zabbix,,, like postgres database DB size, how many DB, users in db ,active users.

    Thanks in advance.

    1. Prabhin Prabhakaran – IT professional
      Prabhin Prabharkaran

      hi SanthoshKumar,
      We haven’t created any documents related to this, will create and keep you posted.

Leave a Reply