# How Dynatrace get hardware resource metrics?

**URL:** <https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354>\
**Category:** Open Q&A\
**Tags:** process-groups, dynatrace-saas\
**Created:** [January 16, 2018, 9:25am UTC](https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354 "2018-01-16T09:25:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkobayashi1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nkobayashi1/32/5187_2.png) [@nkobayashi1](https://community.dynatrace.com/u/nkobayashi1)\
**Post date:** [January 16, 2018, 9:25am UTC](https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354/1 "2018-01-16T09:25:54Z")

</div>

Hi all,

Could you tell me how Dynatrace get usage metrics of CPU and memory of each process?  
I need the information for both of Linux and Windows.

 ![15489-dynatrace-hardware-metrics.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/2/42d4cf9a816381769aab35a4060b1ea0bb414cbb.png)

Our customer wants this information.  
But I could not find in the document.

Best Regards,  
Noah

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [January 18, 2018, 9:51am UTC](https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354/2 "2018-01-18T09:51:04Z")

</div>

On Linux per process metrics are read from /proc/ (/proc/\<pid\>/stat and /proc/\<pid\>/status here)

On Windows it is calculated based on WinAPI calls (GetProcessTimes() andGetProcessMemoryInfo())

---

<div class="post-metadata">

**Author:** ![nkobayashi1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nkobayashi1/32/5187_2.png) [@nkobayashi1](https://community.dynatrace.com/u/nkobayashi1)\
**Post date:** [January 19, 2018, 7:25am UTC](https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354/3 "2018-01-19T07:25:51Z")

</div>

Hi,

I have an additional question about this topics.

How Dynatrace get hardware resource metrics per hosts?  
Specifically, the CPU and Memory usage in the following screenshot.

 ![15529-dynatrace-hardware-metrics-per-hosts.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/3/636aeeab0d5bb66aa2527e8a1776cefeefe90e3d.png)

Best, Noah

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [January 19, 2018, 9:54am UTC](https://community.dynatrace.com/t/how-dynatrace-get-hardware-resource-metrics/10354/4 "2018-01-19T09:54:32Z")

</div>

The answer is analogous. On Linux from /proc/stat and /proc/meminfo and  
on Windows from WinApi calls GetSystemTimes() and GetPerformanceInfo()
