<?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: Get list of services with request names and their failure rates based on management zone. in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Retrieve-Services-with-Request-Names-and-Failure-Rates-Using-DQL/m-p/277275#M2085</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/68729"&gt;@harry22&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Could you check out this Community thread?&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Dashboarding/Filter-by-Management-Zone-using-DQL/m-p/232268" target="_self"&gt;Filter by Management Zone using DQL&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;There are a couple of examples there that potentially can help to solve your use case.&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 09:19:17 GMT</pubDate>
    <dc:creator>MaciejNeumann</dc:creator>
    <dc:date>2025-05-15T09:19:17Z</dc:date>
    <item>
      <title>Retrieve Services with Request Names and Failure Rates Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Retrieve-Services-with-Request-Names-and-Failure-Rates-Using-DQL/m-p/266808#M1584</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for a way in DQL to get the list of services with the request names and failure rate for that request based on management zone or/and tags. And, then compare it with previous week to get the list of requests for which failure rate has increased.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;// calculate HTTP 5xx response status code request rate. We are looking for each endpoints and interval of 1 day&lt;BR /&gt;timeseries {total = sum(dt.service.request.count),by: { endpoint.name}, interval:24h }, from:-7d, to:-1d&lt;BR /&gt;//filtering out the Non Key requests and including the requests that has "connected" in them&lt;BR /&gt;| filterOut contains(endpoint.name, "NON_KEY")&lt;/P&gt;
&lt;P&gt;//&lt;STRONG&gt;Instead of end point name I would like to have a management zone filter below and would also like to include 4xx errors&lt;/STRONG&gt;&lt;BR /&gt;| Filter contains(endpoint.name, "ABC") or contains(endpoint.name, "DEF")&lt;/P&gt;
&lt;P&gt;//joining the metrics to calculate the error rate&lt;BR /&gt;| join [&lt;BR /&gt;timeseries {fiveXX = sum(dt.service.request.count, default: 0.0), by: { endpoint.name}, interval:24h}, from:-7d, to:-1d,&lt;BR /&gt;filter:http.response.status_code &amp;gt;= 500 //filtering for 5xx errors&lt;BR /&gt;and http.response.status_code &amp;lt;= 599&lt;BR /&gt;and contains(endpoint.name, "connectedhome") or contains(endpoint.name, "browsebuy")&lt;BR /&gt;//], kind:leftOuter, prefix: "httpState.", on:{ timeframe, endpoint.name }&lt;BR /&gt;], kind:inner, prefix: "httpState.", on:{ timeframe, endpoint.name }&lt;/P&gt;
&lt;P&gt;| fieldsAdd {rate5xx = httpState.fiveXX[] / total[] * 100} //rate calculation&lt;BR /&gt;/*&lt;BR /&gt;| filter rate5xx[0] &amp;gt; 0.0&lt;BR /&gt;and rate5xx[1] &amp;gt; 0.00&lt;BR /&gt;and rate5xx[2] &amp;gt; 0.00&lt;BR /&gt;and rate5xx[3] &amp;gt; 0.00&lt;BR /&gt;and rate5xx[4] &amp;gt; 0.00&lt;BR /&gt;and rate5xx[5] &amp;gt; 0.00&lt;BR /&gt;and rate5xx[6] &amp;gt; 0.00//only rate &amp;gt; 0.0&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;| fieldsAdd minusSixRate = rate5xx[0],&lt;BR /&gt;todayRate = rate5xx[6] //assigning rates for the days&lt;BR /&gt;| filter minusSixRate != 100.00 and todayRate != 100.00&lt;BR /&gt;&lt;BR /&gt;| fields endpoint=endpoint.name, Last_Week_Rate=minusSixRate, Yesterday_Rate=todayRate, Total_Req_Yesterday=total[6], Total_Failed_Yesterday=httpState.fiveXX[6]&lt;BR /&gt;| sort Yesterday_Rate desc&lt;/P&gt;
&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:47:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Retrieve-Services-with-Request-Names-and-Failure-Rates-Using-DQL/m-p/266808#M1584</guid>
      <dc:creator>harry22</dc:creator>
      <dc:date>2025-12-18T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of services with request names and their failure rates based on management zone.</title>
      <link>https://community.dynatrace.com/t5/DQL/Retrieve-Services-with-Request-Names-and-Failure-Rates-Using-DQL/m-p/277275#M2085</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/68729"&gt;@harry22&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Could you check out this Community thread?&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Dashboarding/Filter-by-Management-Zone-using-DQL/m-p/232268" target="_self"&gt;Filter by Management Zone using DQL&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;There are a couple of examples there that potentially can help to solve your use case.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 09:19:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Retrieve-Services-with-Request-Names-and-Failure-Rates-Using-DQL/m-p/277275#M2085</guid>
      <dc:creator>MaciejNeumann</dc:creator>
      <dc:date>2025-05-15T09:19:17Z</dc:date>
    </item>
  </channel>
</rss>

