<?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 How to get a topN CPU utilization chart for only servers with 2 CPUs? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242009#M3026</link>
    <description>&lt;P&gt;I am fairly good at using the V2 API for extracting statistics, but here is one question that I need help on.&lt;/P&gt;
&lt;P&gt;How can I enhance a normal topN query for servers to only include server entities with 2 CPUs?&lt;/P&gt;
&lt;P&gt;Here us my simple base query:&lt;/P&gt;
&lt;P&gt;builtin:host.cpu.usage:splitBy("dt.entity.host"):sort(value(auto,descending)):limit(20)&lt;/P&gt;
&lt;P&gt;Any advice appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Lou&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 07:44:18 GMT</pubDate>
    <dc:creator>crabbylou</dc:creator>
    <dc:date>2024-04-08T07:44:18Z</dc:date>
    <item>
      <title>How to get a topN CPU utilization chart for only servers with 2 CPUs?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242009#M3026</link>
      <description>&lt;P&gt;I am fairly good at using the V2 API for extracting statistics, but here is one question that I need help on.&lt;/P&gt;
&lt;P&gt;How can I enhance a normal topN query for servers to only include server entities with 2 CPUs?&lt;/P&gt;
&lt;P&gt;Here us my simple base query:&lt;/P&gt;
&lt;P&gt;builtin:host.cpu.usage:splitBy("dt.entity.host"):sort(value(auto,descending)):limit(20)&lt;/P&gt;
&lt;P&gt;Any advice appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 07:44:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242009#M3026</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2024-04-08T07:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a topN CPU utilization chart for only servers with 2 CPUs?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242090#M3027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/66964"&gt;@crabbylou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Properties aren't directly accessible via EntitySelectors, but You can workaround it using TAGS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalOlszewski_1-1712580674903.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18747iCAE8E494D58B2607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichalOlszewski_1-1712580674903.png" alt="MichalOlszewski_1-1712580674903.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create autotagging rule to use CoreCount (logical AIX or any You Like) to create such tags, and then use those tags in EntitySelector.&lt;BR /&gt;&lt;BR /&gt;Bests&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 12:52:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242090#M3027</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2024-04-08T12:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a topN CPU utilization chart for only servers with 2 CPUs?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242093#M3028</link>
      <description>&lt;P&gt;I think I got it. It was a bit cryptic in API query land. This seemed to work:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;builtin:host.cpu.usage:filter(in("dt.entity.host", entitySelector("type(~"HOST~"),virtualCpus(2)"))):sort(value(auto,descending)):limit(20)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks Michal and All!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 13:06:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-topN-CPU-utilization-chart-for-only-servers-with-2/m-p/242093#M3028</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2024-04-08T13:06:07Z</dc:date>
    </item>
  </channel>
</rss>

