Telegraf-HA Installation Guide

Install telegraf

Reading instructions

Step1. Log in to the active management node, and then install Telegraf for the backup management node.

cd /root
source lico_env.local
ssh $backup_sms_ip dnf install -y telegraf

Step 2. Edit the /etc/telegraf/telegraf.conf file on the active management node:

Note: virtual_ipaddress from the virtual_ipaddress configured in the Install InfluxDB-HA section.

[[outputs.influxdb_v2]]
   urls = ["http://<virtual_ipaddress>:8086"]
   # This token is obtained from the `influxdb_admin_token` in the Prometheus installation section, and does not need to be changed if it is already configured.
   token = "<influxdb token>"
   # Organization is the name of the organization you wish to write to.
   organization = "hpc"
   # Destination bucket to write into.
   bucket = "prometheus"

Step 3. Restart the Telegraf Service:

systemctl restart telegraf

Step 4. Log in to the backup management node and copy the configuration file from the active management node:

cd /root
source lico_env.local
scp -r root@$sms_ip:/etc/telegraf/telegraf.conf /etc/telegraf/telegraf.conf

Step 5. Start and enable Telegraf Service in the backup management node:

systemctl restart telegraf
systemctl enable telegraf