# Get processes consuming CPU% based on high disk read bytes?

**URL:** <https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471>\
**Category:** Dashboarding\
**Tags:** timeframe, dynatrace-managed, dashboards\
**Created:** [November 6, 2023, 11:45am UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471 "2023-11-06T11:45:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/naveen/32/2570_2.png) [@Naveen](https://community.dynatrace.com/u/Naveen)\
**Post date:** [November 6, 2023, 11:45am UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/1 "2023-11-06T11:45:44Z")

</div>

Hi,

I want to see which processes were consuming high CPU when there were high Disk read bytes per second for specific host. Could you please help me writing the query.

Thanks

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 11:53am UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/2 "2023-11-06T11:53:32Z")

</div>

Hi,

If I’m not mistaken the builtin:host.disk.readOps metric can only be spliced after Host or Disk.

Radek

---

<div class="post-metadata">

**Author:** ![Naveen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/naveen/32/2570_2.png) [@Naveen](https://community.dynatrace.com/u/Naveen)\
**Post date:** [November 6, 2023, 11:55am UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/3 "2023-11-06T11:55:43Z")

</div>

Hey&nbsp;[@radek\_jasinski](https://community.dynatrace.com/user/16832)&nbsp;Yes but I need process data which were consuming more CPU when there are high readops.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 12:19pm UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/4 "2023-11-06T12:19:08Z")

</div>

You have this metric available: builtin:tech.generic.io.bytesRead

"_This metric provides statistics about the I/O read operations of a process. The metric value is a sum of I/O bytes read from the storage layer by all process workers per second. High values help to identify bottlenecks reducing process performance caused by the slow read speed of the storage device. It has a “Process” dimension (dt.entity.process\_group\_instance)."_

It should meet your assumptions. On Data Explorer, you need to overlay two metrics (CPU and bytesRead)

> **[Built-in classic metrics](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics-classic/built-in-metrics)**
>
> Explore the complete list of built-in Dynatrace metrics.

---

<div class="post-metadata">

**Author:** ![Naveen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/naveen/32/2570_2.png) [@Naveen](https://community.dynatrace.com/u/Naveen)\
**Post date:** [November 6, 2023, 12:29pm UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/5 "2023-11-06T12:29:32Z")

</div>

Hi I have written below query, could you please evaluate

builtin:tech.generic.io.bytesRead:splitBy(“dt.entity.process\_group\_instance”):sort(value(auto,descending)):limit(20)

builtin:host.cpu.usage:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“Host1~”)”))))):splitBy():sort(value(auto,descending)):limit(20)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 12:53pm UTC](https://community.dynatrace.com/t/get-processes-consuming-cpu-based-on-high-disk-read-bytes/42471/6 "2023-11-06T12:53:26Z")

</div>

What I can suggest is to apply a filter on a specific process or host to improve the readability of the graph. Of course, you may prefer to have more data.

Example:

builtin:tech.generic.io.bytesRead:filter(and(or(in(“dt.entity.process\_group\_instance”,entitySelector(“type(process\_group\_instance),entityName.equals(~“Apache Web Server easyTravel~”)”))))):splitBy(“dt.entity.process\_group\_instance”):sort(value(auto,descending)):limit(20)

builtin:host.cpu.usage:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“CF1-tomcatjms~”)”))))):splitBy(“dt.entity.host”):sort(value(auto,descending)):limit(20)

Radek
