<?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 DQL Dashboard Queries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/224493#M271</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand it not all Dynatrace metrics are currently in grail. For the metrics that are not, can you still use dql to query those metrics, for instance on the new dashboard app? Or do you have to create those tiles a different way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 17:47:06 GMT</pubDate>
    <dc:creator>danielD</dc:creator>
    <dc:date>2023-10-03T17:47:06Z</dc:date>
    <item>
      <title>DQL Dashboard Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/224493#M271</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand it not all Dynatrace metrics are currently in grail. For the metrics that are not, can you still use dql to query those metrics, for instance on the new dashboard app? Or do you have to create those tiles a different way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 17:47:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/224493#M271</guid>
      <dc:creator>danielD</dc:creator>
      <dc:date>2023-10-03T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Dashboard Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/224508#M274</link>
      <description>&lt;P&gt;you can create new metrics for this, and them they will be available on the grail&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 21:46:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/224508#M274</guid>
      <dc:creator>natanael_mendes</dc:creator>
      <dc:date>2023-10-03T21:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Dashboard Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/233963#M532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/50619"&gt;@danielD&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The metrics and SLOs aren't available with grail.&lt;/P&gt;&lt;P&gt;To obtain them, you must use the SDK classic environment APIs, while waiting for these features to arrive natively in Grail.&lt;BR /&gt;It shouldn't be long&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 22:10:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/233963#M532</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-10T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Dashboard Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/233976#M533</link>
      <description>&lt;P&gt;DanielD&lt;/P&gt;&lt;P&gt;You can use this in the notebooks or dashboards to get the metrics that you use in the dataexplorer&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { metricsClient } from '@dynatrace-sdk/client-classic-environment-v2';

export default async function () {
    const metricSelectorString = "builtin:service.response.time:splitBy():fold:avg";
    const resp = await metricsClient.query({
        metricSelector: metricSelectorString,
        acceptType: "application/json; charset=utf-8",
    });
    let outarray = [];
    for (let rate of resp.result[0].data) {
        let i = 0;
        for (let ts of rate.timestamps) {
            i++;
            let date = new Date(ts);
            outarray.push({
                'Timestamp': date,
                'miliSeconds': rate.values/1000,
            });
        }
    }
    return outarray;
}&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="rgarzon1_0-1704956243727.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16738i59A74F0B0B24E98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_0-1704956243727.png" alt="rgarzon1_0-1704956243727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PD: i just notice that this is from 3 months ago, but well you can always have new ways to doit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 06:58:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Dashboard-Queries/m-p/233976#M533</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2024-01-11T06:58:54Z</dc:date>
    </item>
  </channel>
</rss>

