<?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: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/243349#M1219</link>
    <description>&lt;P&gt;Very useful tip!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 17:51:34 GMT</pubDate>
    <dc:creator>cesarsaravia</dc:creator>
    <dc:date>2024-04-19T17:51:34Z</dc:date>
    <item>
      <title>Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/236418#M1150</link>
      <description>&lt;H3&gt;Why do I see differences in metric data between grail based queries and Data explorer?&lt;/H3&gt;
&lt;P&gt;With grail we have changed the way the data is stored and displayed. DQL allows you to access raw metric data and perform your own transformations to achieve what you want. In case of Data explorer it already does some processing on the data in the background. When trying to play around with timeseries in our new platform you might notice that metric results that you get differ from what you can see in Data explorer - this is most likely due to different processing applied by your query and by Data explorer&lt;/P&gt;
&lt;H3&gt;How do I get the same results?&lt;/H3&gt;
&lt;P&gt;To make transition from our classic Data explorer charts easier we have built a tool that will allow you to create a traditional metric query and automatically generate equivalent DQL command.&lt;/P&gt;
&lt;P&gt;In Data explorer build your metric query:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dawid_rampalski_0-1707294491848.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17436i7E7312CEF8B3FF6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="dawid_rampalski_0-1707294491848.png" alt="dawid_rampalski_0-1707294491848.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To transform it into dql, click on the "Open with" and select your application of choice:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dawid_rampalski_1-1707294975016.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17437i18059049A0906E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="dawid_rampalski_1-1707294975016.png" alt="dawid_rampalski_1-1707294975016.png" /&gt;&lt;/span&gt;&lt;/P&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="dawid_rampalski_2-1707295001837.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17438i040194B38374B280/image-size/large?v=v2&amp;amp;px=999" role="button" title="dawid_rampalski_2-1707295001837.png" alt="dawid_rampalski_2-1707295001837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your query is generated in selected app together with a tile that runs it for you and presents results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dawid_rampalski_3-1707295805465.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17439i8FBADE68394C0834/image-size/large?v=v2&amp;amp;px=999" role="button" title="dawid_rampalski_3-1707295805465.png" alt="dawid_rampalski_3-1707295805465.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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;timeseries usage=sum(dt.process.cpu.usage, rollup: avg), filter: { in(dt.entity.process_group_instance, classicEntitySelector("type(process_group_instance),fromRelationship.isProcessOf(type(HOST),entityName.equals(\"cpu1-demo1\"))")) }
| sort arraySum(usage) desc
| limit 20
| append [timeseries usage=avg(dt.host.cpu.usage), filter: { in(dt.entity.host, classicEntitySelector("type(host),entityName.equals(\"cpu1-demo1\")")) }
  | sort arrayAvg(usage) desc
  | 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;This query is designed to provide the same processing that is selected in Data explorer or get as close to it as possible within DQL&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 11:04:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/236418#M1150</guid>
      <dc:creator>dawid_rampalski</dc:creator>
      <dc:date>2024-03-14T11:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/236514#M1152</link>
      <description>&lt;P&gt;That's an interesting feature!!!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 19:27:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/236514#M1152</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-02-07T19:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/238306#M1167</link>
      <description>&lt;P&gt;Great!!! Thanks. Very Useful&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 18:59:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/238306#M1167</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2024-02-27T18:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/238330#M1170</link>
      <description>&lt;P&gt;Ahh..thats awesome... very useful. Thanks for sharing this&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 04:16:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/238330#M1170</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2024-02-28T04:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242472#M1213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3493"&gt;@dawid_rampalski&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In several cases we find this message when we try to convert a query from Data Explorer to DQL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1712898792825.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18855iD70A5A9516AE744B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_0-1712898792825.png" alt="erh_inetum_0-1712898792825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it because there is not an equivalent metric for DQL?&lt;/P&gt;&lt;P&gt;The Data Explorer query that we can´t convert is using the following metrics:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;builtin:apps.web.actionCount.load.browser&lt;/LI&gt;&lt;LI&gt;builtin:apps.web.actionCount.xhr.browse&lt;/LI&gt;&lt;LI&gt;builtin:apps.web.visuallyComplete.load.browse&lt;/LI&gt;&lt;LI&gt;builtin:apps.web.&lt;SPAN&gt;VisuallyComplete.xhr.browse&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;In these cases, how can we convert the DataExplorer query to DQL query?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Elena.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 05:25:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242472#M1213</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-04-12T05:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242473#M1214</link>
      <description>&lt;P&gt;Hi Elena,&lt;/P&gt;
&lt;P&gt;that is exactly the reason why. We don't have metrics for applications enabled yet in Grail. You can check the list of currently available builtin metrics here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/observe-and-explore/metrics/built-in-metrics-on-grail" target="_blank"&gt;https://docs.dynatrace.com/docs/observe-and-explore/metrics/built-in-metrics-on-grail&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In the case of those there is at this point no way to use them from DQL. We are working on it though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dawid&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 05:38:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242473#M1214</guid>
      <dc:creator>dawid_rampalski</dc:creator>
      <dc:date>2024-04-12T05:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242479#M1215</link>
      <description>&lt;P&gt;Thank you, this is a great help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 06:48:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/242479#M1215</guid>
      <dc:creator>marina_pollehn</dc:creator>
      <dc:date>2024-04-12T06:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/243349#M1219</link>
      <description>&lt;P&gt;Very useful tip!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 17:51:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/243349#M1219</guid>
      <dc:creator>cesarsaravia</dc:creator>
      <dc:date>2024-04-19T17:51:34Z</dc:date>
    </item>
  </channel>
</rss>

