<?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: Output of total number of http errors using DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257049#M1240</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Have a look at this dashboard on the Playground TEnant - you get a couple of great DQL query examples for e.g: Failure Rate but it also shows some filter options in dashboards:&amp;nbsp;&lt;A href="https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/29f7a7c0-6c4c-4f02-9a71-a1f327273e51" target="_blank"&gt;https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/29f7a7c0-6c4c-4f02-9a71-a1f327273e51&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 06:34:24 GMT</pubDate>
    <dc:creator>andreas_grabner</dc:creator>
    <dc:date>2024-09-25T06:34:24Z</dc:date>
    <item>
      <title>Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257047#M1237</link>
      <description>&lt;P&gt;Please tell me how to output the total "reqcount" value in the following DQL.&lt;/P&gt;&lt;P&gt;timeseries reqcount=sum(dt.service.request.count, default:0),&lt;BR /&gt;by:{http.response.status_code},&lt;BR /&gt;filter:{&lt;BR /&gt;dt.entity.service == "XXXXXXX"&lt;BR /&gt;and http.response.status_code == 500&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:27:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257047#M1237</guid>
      <dc:creator>Taihei</dc:creator>
      <dc:date>2024-09-25T06:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257049#M1240</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Have a look at this dashboard on the Playground TEnant - you get a couple of great DQL query examples for e.g: Failure Rate but it also shows some filter options in dashboards:&amp;nbsp;&lt;A href="https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/29f7a7c0-6c4c-4f02-9a71-a1f327273e51" target="_blank"&gt;https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/29f7a7c0-6c4c-4f02-9a71-a1f327273e51&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:34:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257049#M1240</guid>
      <dc:creator>andreas_grabner</dc:creator>
      <dc:date>2024-09-25T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257051#M1241</link>
      <description>&lt;P&gt;And to your question. You could use the new Metrics Tile in the Dashboard and easily create that DQL simply through point and click and then also see the DQL&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andreas_grabner_0-1727246224652.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22868i480FE4AC1FEF317D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andreas_grabner_0-1727246224652.png" alt="andreas_grabner_0-1727246224652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:37:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257051#M1241</guid>
      <dc:creator>andreas_grabner</dc:creator>
      <dc:date>2024-09-25T06:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257055#M1243</link>
      <description>&lt;P&gt;Thank you for your help!&lt;BR /&gt;I was able to output the total "reqcount" value.&lt;/P&gt;&lt;P&gt;Please tell us the following in addition.&lt;/P&gt;&lt;P&gt;How do I write a DQL statement that returns 0 if there are no records?&lt;/P&gt;&lt;P&gt;I could not write the following, but it's not working.&lt;/P&gt;&lt;P&gt;timeseries reqcount=sum(dt.service.request.count, default:0) ,&lt;BR /&gt;by:{http.response.status_code},&lt;BR /&gt;filter:{&lt;BR /&gt;dt.entity.service == "XXXXXXXXXXXXXXX"&lt;BR /&gt;and http.response.status_code == 500&lt;BR /&gt;}&lt;BR /&gt;| fieldsAdd result=if(arraySum(reqcount) &amp;gt; 0, arraySum(reqcount), else: 0)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 07:28:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257055#M1243</guid>
      <dc:creator>Taihei</dc:creator>
      <dc:date>2024-09-25T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257118#M1247</link>
      <description>&lt;P&gt;You can use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;nonempty:true&lt;/STRONG&gt;&lt;/EM&gt; parameter for &lt;STRONG&gt;&lt;EM&gt;timeseries&lt;/EM&gt; &lt;/STRONG&gt;command to ensure that it always returns something&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:02:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257118#M1247</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-09-25T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output of total number of http errors using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257157#M1251</link>
      <description>&lt;P&gt;Resolved. Thank you very much.&lt;/P&gt;&lt;P&gt;I have created a DQL as follows&lt;/P&gt;&lt;P&gt;timeseries reqcount=sum(dt.service.request.count, default:0) ,&lt;BR /&gt;nonempty:true,&lt;BR /&gt;by:{http.response.status_code},&lt;BR /&gt;filter:{&lt;BR /&gt;dt.entity.service == "XXXXXXXXXXXXXXX"&lt;BR /&gt;and http.response.status_code == 500&lt;BR /&gt;}&lt;BR /&gt;| fieldsAdd result=if(arraySum(reqcount) &amp;gt; 0, arraySum(reqcount), else: 0)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 00:51:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Output-of-total-number-of-http-errors-using-DQL/m-p/257157#M1251</guid>
      <dc:creator>Taihei</dc:creator>
      <dc:date>2024-09-26T00:51:10Z</dc:date>
    </item>
  </channel>
</rss>

