<?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: Process Memory /CPU usage per host and Service in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266068#M1557</link>
    <description>&lt;P&gt;You can update that in the Legend and tooltip section under Visual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" style="width: 992px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25429i61A10F0C6099354B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboards-Demo-Live-guu84124-Dynatrace.png" alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 13:34:59 GMT</pubDate>
    <dc:creator>sia_h</dc:creator>
    <dc:date>2024-12-23T13:34:59Z</dc:date>
    <item>
      <title>Process Memory /CPU usage per host and Service</title>
      <link>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266013#M1552</link>
      <description>&lt;P&gt;I'm trying to create a timeseries tile that presents a&amp;nbsp;Process Memory /CPU usage per host, and filter it according to a variable called "ServiceId". for example :&lt;/P&gt;&lt;P&gt;I use a variable called "ServiceID" and i choose "Service-123". I want to receive a tile for the CPU and another one for memory usage of the Service's process, spited by the hosts it is running on.&amp;nbsp; so if it runs on server A and Server B i&amp;nbsp; will get a tile with 2 graphs showing the memory&amp;nbsp; usage of the service's process (same for CPU).&lt;/P&gt;&lt;P&gt;i tried to create several DQL for that but couldn't get to a correct one. i'll be glad for advise and code examples.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 14:43:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266013#M1552</guid>
      <dc:creator>eranma</dc:creator>
      <dc:date>2024-12-22T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Process Memory /CPU usage per host and Service</title>
      <link>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266030#M1553</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(dt.process.cpu.usage), by: { dt.entity.process_group_instance, dt.entity.process_group, dt.entity.host }
| fieldsAdd dt.entity.process_group_instance.name = entityName(dt.entity.process_group_instance)
| fieldsAdd dt.entity.process_group.name = entityName(dt.entity.process_group)
| fieldsAdd dt.entity.host.name = entityName(dt.entity.host)
| fieldsAdd value.A = arrayAvg(`avg(dt.process.cpu.usage)`)
| lookup [ fetch dt.entity.service
| fields entity.name, id, runs_on
| fieldsFlatten runs_on
], sourceField:dt.entity.process_group, lookupField:runs_on.dt.entity.process_group
| filter lookup.entity.name == $Service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Variable Service&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| fields entity.name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25419iF5F5824297F2D36D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboards-Demo-Live-guu84124-Dynatrace.png" alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 07:37:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266030#M1553</guid>
      <dc:creator>sia_h</dc:creator>
      <dc:date>2024-12-23T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Process Memory /CPU usage per host and Service</title>
      <link>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266063#M1556</link>
      <description>&lt;P&gt;Thanks that helps!&lt;/P&gt;&lt;P&gt;Any chance to get the legend as the process name and the host name? currently it's the process name and the host id&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 13:11:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266063#M1556</guid>
      <dc:creator>eranma</dc:creator>
      <dc:date>2024-12-23T13:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Process Memory /CPU usage per host and Service</title>
      <link>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266068#M1557</link>
      <description>&lt;P&gt;You can update that in the Legend and tooltip section under Visual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" style="width: 992px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25429i61A10F0C6099354B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboards-Demo-Live-guu84124-Dynatrace.png" alt="Dashboards-Demo-Live-guu84124-Dynatrace.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 13:34:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Process-Memory-CPU-usage-per-host-and-Service/m-p/266068#M1557</guid>
      <dc:creator>sia_h</dc:creator>
      <dc:date>2024-12-23T13:34:59Z</dc:date>
    </item>
  </channel>
</rss>

