Todo : Install InfluxDB

Update Raspberry Pi

sudo apt-get update && sudo apt-get upgrade -y
sudo rpi-update

Install & Enable Telegraf

sudo apt-get install telegraf
sudo systemctl enable telegraf
sudo systemctl start telegraf

Install lm-sensors

sudo apt-get install lm-sensors

Run the following to detect sensors

sudo sensors-detect

Run the following to see if CPU sensor is now monitored

sudo reboot

Setup Telegraf Configuration File

sudo nano /etc/telegraf/telegraf.conf

Add output to InfluxDB. Go to Output Plugins, uncomment database. Add a URL for the InfluxDB host.

urls = [""]

database = "telegraf"

Go to Inputs and uncomment [[inputs.sensors]].

Save the file. To reload it, restart Telegraf.

sudo systemctl reload telegraf.service


Leave a Reply