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

sensors
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 = ["http://192.168.0.3:8086"]

database = "telegraf"

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

Save the file. To reload it, restart Telegraf.

sudo systemctl reload telegraf.service

Sources:

Leave a Reply