# CPU thread info metrics

**URL:** <https://discuss.elastic.co/t/cpu-thread-info-metrics/262536>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 28, 2021, 4:47pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536 "2021-01-28T16:47:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishaan](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@Ishaan](https://discuss.elastic.co/u/Ishaan)\
**Post date:** [January 28, 2021, 4:47pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536/1 "2021-01-28T16:47:15Z")

</div>

Hello,

Is there any metrics that collects CPU thread related information. I couldn't find anything related to thread under cpu metricset fields.

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 28, 2021, 5:06pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536/2 "2021-01-28T17:06:24Z")

</div>

HI @Ishaan

Metricbeat will collect down to the process level.

Threads within the process would typically come from the app level, jmx etc.

Depending on the technology / language you are using there may be different methods to expose that data.

What are you using?

---

<div class="post-metadata">

**Author:** ![Ishaan](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@Ishaan](https://discuss.elastic.co/u/Ishaan)\
**Post date:** [January 28, 2021, 5:28pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536/3 "2021-01-28T17:28:29Z")

</div>

> [@stephenb](#):
>
> to the proces

Hi,

I have deployed metricbeat agent on our multiple linux and windows server, and we are collecting CPU and memory related metrics out it. So I was wondering if there's a way to collect thread level info using any metricsets because different servers running different technologies and languages.

We just want to collect system wide info across windows and linux.

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 28, 2021, 5:42pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536/4 "2021-01-28T17:42:50Z")

</div>

You can collect process level stats

1 process may have many threads, threads are internal to the process metricbeat does not collect / monitor them.

See [Here](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-process.html) for processes

[Note](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-system.html#_process) :

_"Process execution data (state, memory, cpu, cmdline) should be available for an authorized user._

_If the beats process is running as less privileged user, it may not be able to read process data belonging to other users. The issue should be reported in application logs:"_

---

<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:** [February 25, 2021, 7:42pm UTC](https://discuss.elastic.co/t/cpu-thread-info-metrics/262536/5 "2021-02-25T19:42:59Z")

</div>

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