# Link the metric CPU I/O wait time

**URL:** <https://community.dynatrace.com/t/link-the-metric-cpu-i-o-wait-time/51924>\
**Category:** Dashboarding\
**Tags:** data-explorer\
**Created:** [June 3, 2025, 2:24pm UTC](https://community.dynatrace.com/t/link-the-metric-cpu-i-o-wait-time/51924 "2025-06-03T14:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svendb1803](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svendb1803](https://community.dynatrace.com/u/svendb1803)\
**Post date:** [June 3, 2025, 2:24pm UTC](https://community.dynatrace.com/t/link-the-metric-cpu-i-o-wait-time/51924/1 "2025-06-03T14:24:54Z")

</div>

Hello

I am looking for a way to link the metric CPU I/O Wait time (builtin:host.cpu.iowait) with the disks the CPU is waiting for in the data explorer.  
Anyone has an idea how to construct such a query?

thank you in advance

---

<div class="post-metadata">

**Author:** ![Sam\_Richardson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sam_richardson/32/36345_2.png) [@Sam\_Richardson](https://community.dynatrace.com/u/Sam_Richardson)\
**Post date:** [June 3, 2025, 3:33pm UTC](https://community.dynatrace.com/t/link-the-metric-cpu-i-o-wait-time/51924/2 "2025-06-03T15:33:02Z")

</div>

Hi [@svendb1803](https://community.dynatrace.com/user/91520), great question.

CPU I/O Wait time is a great metric for identifying hosts that are experiencing wait time generally, however you may find Disk Average Queue Length (builtin:host.disk.queueLength) to be more useful for your purposes. This metric can display both the host, and disks, in the same view.

Unfortunately, this metric doesn’t show definitively whether a disk is causing wait time or not, but it does show disk queue length. If you already know a host CPU that is experiencing wait time, filtering this query by host should shed some light on which disks are working the hardest.

Here is the Advanced Mode query I created:

builtin:host.disk.queueLength:splitBy(“dt.entity.host”,“dt.entity.disk”):sort(value(auto,descending)):limit(20)

I’ve also attached an image of the visual query.

I hope this helps!

 ![data-explorer-query.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/6/f6cc045601142cb7feae08719e9a383f0e9ba55a.png)
