Collect RaspberryPi CPU and GPU temperature with telegraf
- Copy
telegraf_pi_temp.sh
to/usr/local/bin/telegraf_pi_temp.sh
- Modify file permissions
chmod +x /usr/local/bin/telegraf_pi_temp.sh
- Add
telegraf
user to video groupsudo usermod -G video telegraf
sudo service telegraf restart
orsudo reboot
- Add to your telegraf.conf snippet from
telegraf.conf
- Run test
telegraf -config /etc/telegraf/telegraf.conf -test
To get a human readable cpu temperature divide it by 1000
{"cpu":54768, "gpu":54.8}