# How to get tech.jvm.threads.totalCpuTime metric for 2 management zones in data explorer?

**URL:** <https://community.dynatrace.com/t/how-to-get-tech-jvm-threads-totalcputime-metric-for-2-management-zones-in-data-explorer/51244>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [April 16, 2025, 6:16am UTC](https://community.dynatrace.com/t/how-to-get-tech-jvm-threads-totalcputime-metric-for-2-management-zones-in-data-explorer/51244 "2025-04-16T06:16:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [April 16, 2025, 6:16am UTC](https://community.dynatrace.com/t/how-to-get-tech-jvm-threads-totalcputime-metric-for-2-management-zones-in-data-explorer/51244/1 "2025-04-16T06:16:35Z")

</div>

How to get tech.jvm.threads.totalCpuTime metric for 2 management zones in data explorer?

eg query

builtin:tech.jvm.threads.totalCpuTime

:filter(and(or(in(“dt.entity.process\_group\_instance”,entitySelector(“type(process\_group\_instance),mzname(~“mz1~”,~“mz2~”)”)))))  
:splitBy():sort(value(auto,descending)):limit(20)

error:Metric data is missing from the result! For the dimension ‘Thread group’ the query was limited to the top 100 dimension values with the most data points.

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [April 16, 2025, 11:04pm UTC](https://community.dynatrace.com/t/how-to-get-tech-jvm-threads-totalcputime-metric-for-2-management-zones-in-data-explorer/51244/2 "2025-04-16T23:04:35Z")

</div>

You will have to alter the expression to properly make use of the or() logic. The format (with line breaks added to enhance readability) is as follows

```javascript
or(
in("<entity_type>",<entitySelector expression for MZ1>),
in("<entity_type>",<entitySelector expression for MZ2>)
)

```

I believe this is similar to your question about synthetic tests from two management zones, where a similar approach was [suggested](https://community.dynatrace.com/post/275194).

---

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [April 17, 2025, 5:06am UTC](https://community.dynatrace.com/t/how-to-get-tech-jvm-threads-totalcputime-metric-for-2-management-zones-in-data-explorer/51244/3 "2025-04-17T05:06:32Z")

</div>

ty Marco
