1
Tutorials and FAQs / Re: Getting Telegraf to log CPU temperatures to Influx
« on: October 07, 2021, 01:22:23 pm »
Thank you for sharing. After discovering your post I made a small adjustment to the sed used in order to output a format setting the cpu# as a feature tag so it more closely matches the existing Telegraf sensors format:
Code: [Select]
sysctl dev.cpu | grep temperature | sed 's/[a-z\.]*/sensors,feature=cpu/;s/\.[a-z]*\: / temp_input=/;s/.$//'