<?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: makeTimeseries for error rate calculated from fetching spans in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279056#M2183</link>
    <description>&lt;P&gt;changed the DQL to below, getting the trendline now but not sure how to handle null records&lt;BR /&gt;&lt;BR /&gt;fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND matchesValue(k8s.namespace.name, $Tenant) AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api"))&lt;BR /&gt;| makeTimeseries all=count(), interval: 1m&lt;BR /&gt;| join [fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api")) AND (http.response.status_code!=200 AND http.response.status_code!=201)&lt;BR /&gt;| makeTimeseries failed=count(default: 0),interval: 1m&lt;BR /&gt;], kind:leftOuter, prefix:"http.", on:{interval, timeframe}&lt;BR /&gt;| fieldsAdd {errorrate = http.failed[]/all[] *100}&lt;BR /&gt;| fieldsRemove all, http.failed&lt;BR /&gt;| fieldsAdd rate = arrayAvg(errorrate)&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 18:23:57 GMT</pubDate>
    <dc:creator>virdavindersing</dc:creator>
    <dc:date>2025-06-10T18:23:57Z</dc:date>
    <item>
      <title>makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279043#M2182</link>
      <description>&lt;P&gt;Below Is the query to fetch spans and calculate error rate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND matchesValue(k8s.namespace.name, $Tenant) AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api"))&lt;BR /&gt;| summarize all=count(), by:{dt.entity.kubernetes_cluster, start_time}&lt;BR /&gt;| join [fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api")) AND (http.response.status_code!=200 AND http.response.status_code!=201)&lt;BR /&gt;| summarize failed=count(), by:{dt.entity.kubernetes_cluster, start_time}&lt;BR /&gt;], kind:leftOuter, prefix:"http.", on:{dt.entity.kubernetes_cluster, start_time}&lt;BR /&gt;| fieldsAdd {errorrate = http.failed/all *100}&lt;BR /&gt;| fieldsRemove all, http.failed&lt;BR /&gt;// | makeTimeseries {avg(errorrate)}, by:{interval:10m}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but I am unable to create a timeseries for error rate from the above query.&lt;BR /&gt;&lt;BR /&gt;please help&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 16:52:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279043#M2182</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-06-10T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279056#M2183</link>
      <description>&lt;P&gt;changed the DQL to below, getting the trendline now but not sure how to handle null records&lt;BR /&gt;&lt;BR /&gt;fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND matchesValue(k8s.namespace.name, $Tenant) AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api"))&lt;BR /&gt;| makeTimeseries all=count(), interval: 1m&lt;BR /&gt;| join [fetch spans&lt;BR /&gt;| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) AND (matchesPhrase(endpoint.name, "/wasp/api")) AND (http.response.status_code!=200 AND http.response.status_code!=201)&lt;BR /&gt;| makeTimeseries failed=count(default: 0),interval: 1m&lt;BR /&gt;], kind:leftOuter, prefix:"http.", on:{interval, timeframe}&lt;BR /&gt;| fieldsAdd {errorrate = http.failed[]/all[] *100}&lt;BR /&gt;| fieldsRemove all, http.failed&lt;BR /&gt;| fieldsAdd rate = arrayAvg(errorrate)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:23:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279056#M2183</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-06-10T18:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279060#M2184</link>
      <description>&lt;P&gt;It can be achieved with much simpler query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch spans
| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") 
  AND matchesValue(k8s.namespace.name, $Tenant) 
  AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) 
  AND (matchesPhrase(endpoint.name, "/wasp/api"))
| makeTimeseries { all=count(), http.failed=countif(http.response.status_code!=200 AND http.response.status_code!=201) }, interval:10m
| fields errorrate=100*http.failed[]/all[], interval, timeframe&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="krzysztof_hoja_0-1749580892619.png" style="width: 855px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28411i59D3D39F4339B139/image-dimensions/855x438?v=v2" width="855" height="438" role="button" title="krzysztof_hoja_0-1749580892619.png" alt="krzysztof_hoja_0-1749580892619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and if you want to have breakdown by k8s cluster, just add:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch spans
| filter matchesValue(entityAttr(dt.entity.kubernetes_cluster, "entity.name"), "fin-iac-rel-tnl-atm-pr") 
  AND matchesValue(k8s.namespace.name, $Tenant) 
  AND in(dt.entity.service, classicEntitySelector("""type("SERVICE"),fromRelationship.isServiceOf(type("CLOUD_APPLICATION"),tag("dashboard:atm"))""")) 
  AND (matchesPhrase(endpoint.name, "/wasp/api"))
| makeTimeseries { all=count(), http.failed=countif(http.response.status_code!=200 AND http.response.status_code!=201) }, interval:10m
 , by: {dt.entity.kubernetes_cluster}
| fields errorrate=100*http.failed[]/all[], interval, timeframe, dt.entity.kubernetes_cluster&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="krzysztof_hoja_1-1749581065802.png" style="width: 843px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28412i8442E5844843AFDE/image-dimensions/843x447?v=v2" width="843" height="447" role="button" title="krzysztof_hoja_1-1749581065802.png" alt="krzysztof_hoja_1-1749581065802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:44:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279060#M2184</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-06-10T18:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279071#M2186</link>
      <description>&lt;P&gt;thanks for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 03:49:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/279071#M2186</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-06-11T03:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/281987#M2350</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="virdavindersing_1-1753158348870.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29114iF8DE576DDE57FB76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="virdavindersing_1-1753158348870.png" alt="virdavindersing_1-1753158348870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can you please help why is this DQL not working&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 04:26:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/281987#M2350</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-07-22T04:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/282026#M2356</link>
      <description>&lt;P&gt;Spans table has "start_time" and "and_time" fields. You need to specify which you want to use as a time to aggregate. Something like in example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch spans
| makeTimeseries count(), time:start_time&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jul 2025 10:32:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/282026#M2356</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-07-22T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: makeTimeseries for error rate calculated from fetching spans</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/282056#M2362</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:15:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeseries-for-error-rate-calculated-from-fetching-spans/m-p/282056#M2362</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-07-22T13:15:02Z</dc:date>
    </item>
  </channel>
</rss>

