I've successfully run metricbeat on a raspberryPI and I'm wondering what's the best way of adding the system temperature to the metricbeat data collection?
The system temperature can be retrieved using this command: sudo /opt/vc/bin/vcgencmd measure_temp
Interaction with OSs is done using gosigar. You can find it here: https://github.com/elastic/gosigar
You can open a PR with reading the temperature from the proper file. After it's reviewed and merged, gosigar needs to be vendored in Beats. This way the new status report can be added as a new metric in system metricset.
Let me know if you need more help. It would be a great addition to the existing metrics.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.