<?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: Rough idea of price for a 30d query over 8000 hosts in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Rough-idea-of-price-for-a-30d-query-over-8000-hosts/m-p/236670#M637</link>
    <description>&lt;P&gt;Smartscape queries (dt.entity.host in your case) are not subject to cost and are free.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 22:01:40 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2024-02-08T22:01:40Z</dc:date>
    <item>
      <title>Rough idea of price for a 30d query over 8000 hosts</title>
      <link>https://community.dynatrace.com/t5/DQL/Rough-idea-of-price-for-a-30d-query-over-8000-hosts/m-p/236522#M631</link>
      <description>&lt;P&gt;I was trying to figure out about how many host-unit-hrs I was paying for non-prod hosts.&lt;/P&gt;
&lt;PRE&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd entity.type, entity.name, lifetime, tags, hypervisorType, memoryTotal, physicalMemory, paasMemoryLimit&lt;BR /&gt;| filterOut in(tags, array("[AWS]environment:prod", "environment-custom:prod"))&lt;BR /&gt;| fieldsAdd ts_30d_ago=now()-30d&lt;BR /&gt;| fieldsAdd start_ts=arrayMax(array(ts_30d_ago, toTimestamp(lifetime[start]))), end_ts=toTimestamp(lifetime[end])&lt;BR /&gt;| fieldsAdd hrs=ceil(toLong(end_ts-start_ts)/1000000000/60/60.0)&lt;BR /&gt;| fieldsRemove start_ts, end_ts&lt;BR /&gt;| fieldsAdd gb=if(paasMemoryLimit&amp;gt;0, paasMemoryLimit*1024*1024, else: memoryTotal)/1024/1024/1024.0&lt;BR /&gt;| fieldsAdd gb_hrs=gb*hrs&lt;BR /&gt;| summarize sum(gb_hrs), alias:total_gb_hrs&lt;BR /&gt;| fieldsAdd host_unit_hrs=total_gb_hrs/8&lt;/PRE&gt;
&lt;P&gt;I ran the above query for 30d and it took 25sec.&amp;nbsp; But it said "Scanned bytes: 0 B" so I wasn't sure how expensive this query was in overall license cost.&lt;/P&gt;
&lt;P&gt;Is there a general way to estimate license cost for a given query?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 08:12:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Rough-idea-of-price-for-a-30d-query-over-8000-hosts/m-p/236522#M631</guid>
      <dc:creator>jdsumsion</dc:creator>
      <dc:date>2024-02-08T08:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rough idea of price for a 30d query over 8000 hosts</title>
      <link>https://community.dynatrace.com/t5/DQL/Rough-idea-of-price-for-a-30d-query-over-8000-hosts/m-p/236670#M637</link>
      <description>&lt;P&gt;Smartscape queries (dt.entity.host in your case) are not subject to cost and are free.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 22:01:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Rough-idea-of-price-for-a-30d-query-over-8000-hosts/m-p/236670#M637</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-02-08T22:01:40Z</dc:date>
    </item>
  </channel>
</rss>

