<?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: Find out request count per node vs total request count in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/303007#M3457</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67050"&gt;@susmita_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this if it works....&lt;/P&gt;&lt;P&gt;This will render as a timeseries line chart (one line per host) that you can use directly in Anomaly Detection.&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| makeTimeseries requests = count(), by: {host.name}, interval: 5m&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_0-1786168424723.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33882i50460945F82D2075/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_0-1786168424723.png" title="sujit_k_singh_0-1786168424723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time-bucketed data for anomaly detection alerting:&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| summarize requests = count(), by: {host.name, timebin = bin(start_time, 5m)}&lt;BR /&gt;| lookup [&lt;BR /&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| summarize totalRequests = count(), by: {timebin = bin(start_time, 5m)}&lt;BR /&gt;], sourceField: timebin, lookupField: timebin, fields: {totalRequests}&lt;BR /&gt;| fieldsAdd pct = round(toDouble(requests) / toDouble(totalRequests) * 100.0, decimals: 0)&lt;BR /&gt;| fields timebin, host.name, requests, totalRequests, pct&lt;BR /&gt;| sort timebin desc&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_1-1786168519868.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33883iE3DEC899D214A525/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_1-1786168519868.png" title="sujit_k_singh_1-1786168519868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Aug 2026 06:04:50 GMT</pubDate>
    <dc:creator>sujit_k_singh</dc:creator>
    <dc:date>2026-08-08T06:04:50Z</dc:date>
    <item>
      <title>Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302904#M3451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to set up an alert when the distribution of a particular request is not even across the different nodes. To do that, I need to find out the percentage of load based on the load/per node vs total load.&amp;nbsp; I am trying to achieve it by this DQL, however the sum is not working. Any help is really appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-1h&lt;BR /&gt;| filter service.name == "service-name"&lt;BR /&gt;| summarize requests = count(), by: {host.name}&lt;BR /&gt;| fieldsAdd total = sum(requests)&lt;BR /&gt;| fieldsAdd pct = round(toDouble(requests) / toDouble(total) * 100, 2)&lt;BR /&gt;| sort requests desc&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 22:14:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302904#M3451</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2026-08-05T22:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302911#M3452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67050"&gt;@susmita_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-1h&lt;BR /&gt;| filter service.name == "easytrade-ld-offerservice"&lt;BR /&gt;| summarize requests = count(), by: {host.name}&lt;BR /&gt;| summarize { total = sum(requests), d = collectArray(record(host.name, requests)) }&lt;BR /&gt;| expand d&lt;BR /&gt;| fieldsAdd host.name = d[host.name], requests = d[requests]&lt;BR /&gt;| fieldsAdd pct = concat(toString(round(toDouble(requests) / toDouble(total) * 100)), "%")&lt;BR /&gt;| fields host.name, requests, total, pct&lt;BR /&gt;| sort requests desc&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="sujit_k_singh_1-1785972064180.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33873i0B99154B3B191536/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_1-1785972064180.png" title="sujit_k_singh_1-1785972064180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 23:26:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302911#M3452</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-08-05T23:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302987#M3455</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67382"&gt;@sujit_k_singh&lt;/a&gt;&amp;nbsp;. this works.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 13:02:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302987#M3455</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2026-08-07T13:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302988#M3456</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67382"&gt;@sujit_k_singh&lt;/a&gt;&amp;nbsp;can I make it a timeseries if I want to set up an alert in anomaly detection?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 13:06:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/302988#M3456</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2026-08-07T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/303007#M3457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67050"&gt;@susmita_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this if it works....&lt;/P&gt;&lt;P&gt;This will render as a timeseries line chart (one line per host) that you can use directly in Anomaly Detection.&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| makeTimeseries requests = count(), by: {host.name}, interval: 5m&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_0-1786168424723.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33882i50460945F82D2075/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_0-1786168424723.png" title="sujit_k_singh_0-1786168424723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time-bucketed data for anomaly detection alerting:&lt;/P&gt;&lt;P&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| summarize requests = count(), by: {host.name, timebin = bin(start_time, 5m)}&lt;BR /&gt;| lookup [&lt;BR /&gt;fetch spans, from: now()-2h&lt;BR /&gt;| filter service.name == "your-service-name"&lt;BR /&gt;| summarize totalRequests = count(), by: {timebin = bin(start_time, 5m)}&lt;BR /&gt;], sourceField: timebin, lookupField: timebin, fields: {totalRequests}&lt;BR /&gt;| fieldsAdd pct = round(toDouble(requests) / toDouble(totalRequests) * 100.0, decimals: 0)&lt;BR /&gt;| fields timebin, host.name, requests, totalRequests, pct&lt;BR /&gt;| sort timebin desc&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_1-1786168519868.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33883iE3DEC899D214A525/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_1-1786168519868.png" title="sujit_k_singh_1-1786168519868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2026 06:04:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/303007#M3457</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-08-08T06:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find out request count per node vs total request count</title>
      <link>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/303044#M3458</link>
      <description>&lt;P&gt;Thanks much, I will try and let you know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2026 15:59:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Find-out-request-count-per-node-vs-total-request-count/m-p/303044#M3458</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2026-08-10T15:59:52Z</dc:date>
    </item>
  </channel>
</rss>

