<?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 Service Level Objectives using &amp;quot;successful request count&amp;quot; for a specific API call in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Service-Level-Objectives-using-quot-successful-request-count/m-p/120011#M187</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;We've finally started to work with the long waited for SLO's and wanted to define one on the successful calls percentage of one of the API's. So we've opened the specific service and went into the "createa anlysis view", chose "successful request count" using the count aggregation for ths request and filtered to view only the single request we were interested in.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27665-1608127669519.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;That was promising and showed us the right data so we went ahead and created the service metric for it.&lt;BR /&gt;Once done (including creating a metric for the total number of calls, we went ahead and defined an SLO based on the ratio between what we thought would be the number of successfull cals and the total number of calls.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27634-1608127848249.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Imagine our surprise when we started to see the SLO measurements, knowing there were only few failures:&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27635-1608127970962.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So we've started investigating. we've created charts to compare values. We've verified each configuration option. All was fine. Only after several hours I went into the new metrics page (thank you Dynatrace for that - It proved itself) and finally realized that the aggregation used is the default one, i.e. average.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27673-1608128177267.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;This means that this specific metric will always have a value between 0 and 1 and SHOULD NOT be used for the ratio.What do we do now?&lt;/P&gt;
&lt;P&gt;One option is to use this metric only as a success metric and define the success and warning level using values between 0 and 1. This works but seems odd to display as SLO tile shows the % sign next to it.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27647-1608128347770.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;The other option, which we followed is to define the "successful requests" metric based on counting total requests but filtering this to only those with failed state is success. This gave us now the correct value and display&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27666-1608128528105.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;I hope this will save you some time in the future if you came across this issue.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 11:44:49 GMT</pubDate>
    <dc:creator>gilgi</dc:creator>
    <dc:date>2022-08-30T11:44:49Z</dc:date>
    <item>
      <title>Service Level Objectives using "successful request count" for a specific API call</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Service-Level-Objectives-using-quot-successful-request-count/m-p/120011#M187</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;We've finally started to work with the long waited for SLO's and wanted to define one on the successful calls percentage of one of the API's. So we've opened the specific service and went into the "createa anlysis view", chose "successful request count" using the count aggregation for ths request and filtered to view only the single request we were interested in.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27665-1608127669519.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;That was promising and showed us the right data so we went ahead and created the service metric for it.&lt;BR /&gt;Once done (including creating a metric for the total number of calls, we went ahead and defined an SLO based on the ratio between what we thought would be the number of successfull cals and the total number of calls.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27634-1608127848249.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Imagine our surprise when we started to see the SLO measurements, knowing there were only few failures:&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27635-1608127970962.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So we've started investigating. we've created charts to compare values. We've verified each configuration option. All was fine. Only after several hours I went into the new metrics page (thank you Dynatrace for that - It proved itself) and finally realized that the aggregation used is the default one, i.e. average.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27673-1608128177267.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;This means that this specific metric will always have a value between 0 and 1 and SHOULD NOT be used for the ratio.What do we do now?&lt;/P&gt;
&lt;P&gt;One option is to use this metric only as a success metric and define the success and warning level using values between 0 and 1. This works but seems odd to display as SLO tile shows the % sign next to it.&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27647-1608128347770.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;The other option, which we followed is to define the "successful requests" metric based on counting total requests but filtering this to only those with failed state is success. This gave us now the correct value and display&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27666-1608128528105.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;I hope this will save you some time in the future if you came across this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 11:44:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Service-Level-Objectives-using-quot-successful-request-count/m-p/120011#M187</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2022-08-30T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Service Level Objectives using "successful request count" for a specific API call</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Service-Level-Objectives-using-quot-successful-request-count/m-p/120012#M188</link>
      <description>&lt;P&gt;Thank you so much for sharing this! &lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 21:36:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Service-Level-Objectives-using-quot-successful-request-count/m-p/120012#M188</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2020-12-31T21:36:28Z</dc:date>
    </item>
  </channel>
</rss>

