cd /root
source lico_env.local
ssh $backup_sms_ip dnf install -y telegraf
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"
systemctl restart telegraf
cd /root
source lico_env.local
scp -r root@$sms_ip:/etc/telegraf/telegraf.conf /etc/telegraf/telegraf.conf
systemctl restart telegraf
systemctl enable telegraf