This guide installs Telegraf and enables basic system metrics.
sudo apt update
sudo apt install -y telegraf
If the package is not available, add the official InfluxData repository as described in the docs.
Edit the config file:
sudo nano /etc/telegraf/telegraf.conf
Configure the output (InfluxDB, Prometheus, etc.).
sudo systemctl enable --now telegraf
See Telegraf Configuration for configuration guidance.
Any questions?
Feel free to contact us. Find all contact information on our contact page.
Prefer automation? See Telegraf Ansible Setup for an example playbook.
Prefer containers? See Telegraf Docker Setup.
See Telegraf Security for hardening guidance.