# How to check the CPU number from metricbeat?

**URL:** https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803
**Category:** Beats
**Tags:** metricbeat
**Created:** [December 13, 2016, 2:20am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803 "2016-12-13T02:20:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)
#### Post date: [December 13, 2016, 2:20am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803/1 "2016-12-13T02:20:35Z")

</div>

Hi All, it maybe a strange question. But how to get the number of CPU via metricbeat?

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [December 13, 2016, 8:28am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803/2 "2016-12-13T08:28:52Z")

</div>

I think currently the only way is to enable the core metricset where you get an event for each core and then do a count. But that seems to be overcomplicated. Perhaps we should add the # of cores to the cpu metricset? @monica Any thoughts here or do I miss something?

---

<div class="post-metadata">

### Author: ![monica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica/32/3696_2.png) [@monica](https://discuss.elastic.co/u/monica)
#### Post date: [December 13, 2016, 10:02am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803/3 "2016-12-13T10:02:45Z")

</div>

Indeed, the system module of Metricbeat doesn't export the number of cores, so you would need to calculate it Kibana as @ruflin suggested. Please create a [feature request in GitHub](https://github.com/elastic/beats/issues) to export the number of CPU cores.

---

<div class="post-metadata">

### Author: ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)
#### Post date: [December 13, 2016, 10:23am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803/4 "2016-12-13T10:23:57Z")

</div>

Hi @monica, appreciate for your help. Right now, we are still using csv to record such information statically. BTW, is there any possible to run the command via metricbeat, like "cat /etc/redhat-release"? So that we can get the OS version as well.

> <https://github.com/elastic/beats/issues/3186>

---

<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: [January 10, 2017, 10:24am UTC](https://discuss.elastic.co/t/how-to-check-the-cpu-number-from-metricbeat/68803/5 "2017-01-10T10:24:07Z")

</div>

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