Se introduc sursele in fisierul sources.list:
echo "deb https://repos.influxdata.com/debian buster stable" | tee -a /etc/apt/sources.list
Se instaleaza cheia de criptare :
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Se actualizeaza depozitul software si se instaleaza Webmin :
apt-get update && apt-get install -y telegraf
Se activeaza si se porneste serviciul:
systemctl enable telegraf && systemctl start telegraf systemctl status telegraf
Se configureaza din fisierul telegraf.conf:
systemctl stop telegraf nano /etc/telegraf/telegraf.conf
La [[outputs.influxdb]] se activeaza optiunile:
urls = [„http://127.0.0.1:8086”]
database = „telegraf”
Se reporneste serviciul:
systemctl start telegraf