<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splitting by different entity types in a single data explorer query in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Combining-two-entity-types-in-a-single-Data-Explorer-query/m-p/215033#M3010</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/56467"&gt;@paulito&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to be honest, I'm not sure if the following sample query will work or not, but you can give it a try for the single value and let me know,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nagios._Check_CPU_Stats.iowait.percent:filter(and(or(in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah1~")")),in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah2~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah3~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah4~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blha5~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah6~")"))))):limit(20)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 23:06:31 GMT</pubDate>
    <dc:creator>Mohamed_Hamdy</dc:creator>
    <dc:date>2023-06-14T23:06:31Z</dc:date>
    <item>
      <title>Combining two entity types in a single Data Explorer query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Combining-two-entity-types-in-a-single-Data-Explorer-query/m-p/214647#M2997</link>
      <description>&lt;P&gt;I have a single metric but there are two different entity types I'd like to include: hosts and custom devices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom devices:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;nagios._Check_CPU_Stats.iowait.percent:filter(and(or(in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah1~")")),in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah2~")"))))):splitBy("dt.entity.custom_device"):sort(value(auto,descending)):limit(20)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hosts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;nagios._Check_CPU_Stats.iowait.percent:filter(and(or(in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah3~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah4~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blha5~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah6~")"))))):splitBy("dt.entity.host"):sort(value(auto,descending)):limit(20)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both queries are for io waittime and it works well on a graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulito_0-1686324661750.png" style="width: 552px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12178i9C7A86CF90B9E920/image-dimensions/552x207?v=v2" width="552" height="207" role="button" title="paulito_0-1686324661750.png" alt="paulito_0-1686324661750.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I change from graph to single value I have to pick one query or the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to combine the two in a single query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 08:59:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Combining-two-entity-types-in-a-single-Data-Explorer-query/m-p/214647#M2997</guid>
      <dc:creator>paulito</dc:creator>
      <dc:date>2023-06-15T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting by different entity types in a single data explorer query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Combining-two-entity-types-in-a-single-Data-Explorer-query/m-p/215033#M3010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/56467"&gt;@paulito&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to be honest, I'm not sure if the following sample query will work or not, but you can give it a try for the single value and let me know,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nagios._Check_CPU_Stats.iowait.percent:filter(and(or(in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah1~")")),in("dt.entity.custom_device",entitySelector("type(custom_device),entityName.equals(~"blah2~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah3~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah4~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blha5~")")),in("dt.entity.host",entitySelector("type(host),entityName.equals(~"blah6~")"))))):limit(20)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 23:06:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Combining-two-entity-types-in-a-single-Data-Explorer-query/m-p/215033#M3010</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2023-06-14T23:06:31Z</dc:date>
    </item>
  </channel>
</rss>

