<?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 – Creating cost views in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Create-Cost-Views-Using-DQL-for-Resource-and-Budget-Analysis/m-p/287783#M2673</link>
    <description>&lt;P&gt;Unfortunately, HTTP Monitor and Real User Monitoring billing events do not appear to be available in Grail yet. For now, all you really have are the classic metrics. Here are links&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/built-in-metrics#real-user-monitoring" target="_self"&gt;Real User Monitoring&lt;/A&gt;&amp;nbsp;and &lt;A href="https://docs.dynatrace.com/docs/shortlink/built-in-metrics#synthetic" target="_self"&gt;Synthetic Monitors&lt;/A&gt;&amp;nbsp;billing metrics. I think &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/model/dt-system-events" target="_self"&gt;this page&lt;/A&gt; should list all billing events available in Grail for your query above.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2025 19:22:32 GMT</pubDate>
    <dc:creator>ZackE</dc:creator>
    <dc:date>2025-10-13T19:22:32Z</dc:date>
    <item>
      <title>Create Cost Views Using DQL for Resource and Budget Analysis</title>
      <link>https://community.dynatrace.com/t5/DQL/Create-Cost-Views-Using-DQL-for-Resource-and-Budget-Analysis/m-p/287756#M2667</link>
      <description>&lt;P&gt;Hello, everyone&lt;/P&gt;
&lt;P&gt;Everything good?&amp;nbsp;&lt;BR /&gt;I need some help. I’m creating a view in Dynatrace to obtain the cost per service we currently use in our tenants.&lt;BR /&gt;However, I wasn’t successful in creating the view for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;“HTTP Monitor”&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;“Real User Monitoring.”&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Could you please assist me?&lt;BR /&gt;I created a DQL view that works, but it only retrieves the costs for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Services&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Hosts&lt;/STRONG&gt;:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;ow should the query look for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HTTP Monitor&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Real User Monitoring&lt;/STRONG&gt;?&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE&gt;fetch dt.system.events&lt;BR /&gt;| filter event.kind == "BILLING_USAGE_EVENT" and in(event.type, {"Full-Stack Monitoring"})&lt;BR /&gt;| lookup [fetch dt.entity.host], sourceField:dt.entity.host, lookupField:id, fields:{hostGroupName}&lt;BR /&gt;| fieldsAdd nome_do_host = entityName(dt.entity.host), monitoring_source = monitoring_source, hostGroupName&lt;BR /&gt;| summarize by:{event.type, nome_do_host, hostGroupName}, {`Uso do FullStack mode`=sum(billed_gibibyte_hours), `Uso de Infrastructure mode`=sum(billed_host_hours), IL=sum(billed_bytes), DP=sum(data_points), IB=sum(ingested_bytes)}&lt;BR /&gt;| fieldsAdd&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Custo =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(event.type == "Full-Stack Monitoring", `Uso do FullStack mode` * 9999/100000, else:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(event.type == "Infrastructure Monitoring", `Uso de Infrastructure mode` * 22222/100000)),&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Centro_de_custo = hostGroupName&lt;BR /&gt;| fields `Nome do servidor`=nome_do_host, Custo, `Tipo de monitoração`=event.type, `Uso do FullStack mode`, `Uso de Infrastructure mode`, Centro_de_custo&lt;BR /&gt;| summarize by:{`Nome do servidor`}, Custo = sum(Custo)&lt;BR /&gt;| sort Custo desc&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Dec 2025 13:02:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Create-Cost-Views-Using-DQL-for-Resource-and-Budget-Analysis/m-p/287756#M2667</guid>
      <dc:creator>Mateusbmo1</dc:creator>
      <dc:date>2025-12-17T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: DQL – Creating cost views</title>
      <link>https://community.dynatrace.com/t5/DQL/Create-Cost-Views-Using-DQL-for-Resource-and-Budget-Analysis/m-p/287783#M2673</link>
      <description>&lt;P&gt;Unfortunately, HTTP Monitor and Real User Monitoring billing events do not appear to be available in Grail yet. For now, all you really have are the classic metrics. Here are links&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/built-in-metrics#real-user-monitoring" target="_self"&gt;Real User Monitoring&lt;/A&gt;&amp;nbsp;and &lt;A href="https://docs.dynatrace.com/docs/shortlink/built-in-metrics#synthetic" target="_self"&gt;Synthetic Monitors&lt;/A&gt;&amp;nbsp;billing metrics. I think &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/model/dt-system-events" target="_self"&gt;this page&lt;/A&gt; should list all billing events available in Grail for your query above.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 19:22:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Create-Cost-Views-Using-DQL-for-Resource-and-Budget-Analysis/m-p/287783#M2673</guid>
      <dc:creator>ZackE</dc:creator>
      <dc:date>2025-10-13T19:22:32Z</dc:date>
    </item>
  </channel>
</rss>

