<?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: DQL - Metric in dashboard to host in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269682#M1689</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/86522"&gt;@Fast&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am posting&amp;nbsp; here a similar solution but by searching hostname, you can find the query below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {avgCpu = avg(dt.host.cpu.usage),avgMem = avg(dt.host.memory.usage)}, by:{dt.entity.host}, interval:30m
| fieldsRename id = dt.entity.host 
| join [fetch dt.entity.host | fieldsAdd entity.name],on: {id}
| filter right.entity.name == $Search_Host
&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zaidbashir_0-1739255425522.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26299iEEF366692C4B9B81/image-size/large?v=v2&amp;amp;px=999" role="button" title="zaidbashir_0-1739255425522.png" alt="zaidbashir_0-1739255425522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But You have to first create a variable for &lt;STRONG&gt;Search_Host&lt;/STRONG&gt; which will take your hostname and checks the hostname that is equal to resulted hostname and filters the result. You can also use contains() here to get the results matching with Search_Host Variable.&lt;BR /&gt;&lt;BR /&gt;You can modify the above query to get remaining metrics and add other variables to furthur extend the query.&lt;BR /&gt;&lt;BR /&gt;If you need furthur help in this, reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 06:37:18 GMT</pubDate>
    <dc:creator>zaid-bashir</dc:creator>
    <dc:date>2025-02-11T06:37:18Z</dc:date>
    <item>
      <title>DQL - Metric in dashboard to host</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269673#M1687</link>
      <description>&lt;P&gt;Hi there.&lt;BR /&gt;&lt;BR /&gt;I am new in DQL, and I need help to have and view metrics (CPU usage by host / Memory usage by host) in the dashboard, those hosts have an specific tag.&lt;BR /&gt;&lt;BR /&gt;Therefore, I have been trying to get the metrics since days ago; however, I have not been able to do it. I was wondering if you know how to segment this by the tag and bring the metric.&lt;BR /&gt;&lt;BR /&gt;I was checking many cases in Dynatrace Community and I tried those queries, and the queries work, but they mix the host.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Grateful if anyone can help on the this issue.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 22:49:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269673#M1687</guid>
      <dc:creator>Fast</dc:creator>
      <dc:date>2025-02-10T22:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Metric in dashboard to host</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269676#M1688</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/86522"&gt;@Fast&lt;/a&gt;&amp;nbsp;Please try similar to below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1739234679692.png" style="width: 783px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26298i3D96E069715A53D0/image-dimensions/783x371?v=v2" width="783" height="371" role="button" title="p_devulapalli_0-1739234679692.png" alt="p_devulapalli_0-1739234679692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 00:45:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269676#M1688</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-02-11T00:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Metric in dashboard to host</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269682#M1689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/86522"&gt;@Fast&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am posting&amp;nbsp; here a similar solution but by searching hostname, you can find the query below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {avgCpu = avg(dt.host.cpu.usage),avgMem = avg(dt.host.memory.usage)}, by:{dt.entity.host}, interval:30m
| fieldsRename id = dt.entity.host 
| join [fetch dt.entity.host | fieldsAdd entity.name],on: {id}
| filter right.entity.name == $Search_Host
&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zaidbashir_0-1739255425522.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26299iEEF366692C4B9B81/image-size/large?v=v2&amp;amp;px=999" role="button" title="zaidbashir_0-1739255425522.png" alt="zaidbashir_0-1739255425522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But You have to first create a variable for &lt;STRONG&gt;Search_Host&lt;/STRONG&gt; which will take your hostname and checks the hostname that is equal to resulted hostname and filters the result. You can also use contains() here to get the results matching with Search_Host Variable.&lt;BR /&gt;&lt;BR /&gt;You can modify the above query to get remaining metrics and add other variables to furthur extend the query.&lt;BR /&gt;&lt;BR /&gt;If you need furthur help in this, reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 06:37:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269682#M1689</guid>
      <dc:creator>zaid-bashir</dc:creator>
      <dc:date>2025-02-11T06:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Metric in dashboard to host</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269714#M1690</link>
      <description>&lt;P&gt;Just wanted to add on here another way to get entity names as a tip!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {avgCpu = avg(dt.host.cpu.usage),avgMem = avg(dt.host.memory.usage)}, by:{dt.entity.host}, interval:30m
| fieldsAdd entity.name = entityName(dt.entity.host)
| filter entity.name == $Search_Host&lt;/LI-CODE&gt;&lt;P&gt;You can also use the entityAttr() to get a specific attribute removing the need to write out and do a full join/lookup and then cleanup any of the stuff that comes with that.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 09:12:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Metric-in-dashboard-to-host/m-p/269714#M1690</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2025-02-11T09:12:20Z</dc:date>
    </item>
  </channel>
</rss>

