# Measure system temperature

**URL:** <https://discuss.elastic.co/t/measure-system-temperature/128475>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 18, 2018, 7:40am UTC](https://discuss.elastic.co/t/measure-system-temperature/128475 "2018-04-18T07:40:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ionutzp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ionutzp/32/26616_2.png) [@ionutzp](https://discuss.elastic.co/u/ionutzp)\
**Post date:** [April 18, 2018, 7:40am UTC](https://discuss.elastic.co/t/measure-system-temperature/128475/1 "2018-04-18T07:40:45Z")

</div>

Hello all,

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

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 18, 2018, 9:34am UTC](https://discuss.elastic.co/t/measure-system-temperature/128475/2 "2018-04-18T09:34:04Z")

</div>

Interaction with OSs is done using gosigar. You can find it here: [https://github.com/elastic/gosigar](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. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2018, 9:43am UTC](https://discuss.elastic.co/t/measure-system-temperature/128475/3 "2018-05-16T09:43:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
