<?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 How to correctly model a traffic-based SLO when total request count can be zero? in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292626#M2468</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m trying to define a &lt;STRONG&gt;combined, traffic-based availability SLO&lt;/STRONG&gt; in Dynatrace, built from multiple calculated service metrics (for example, total requests vs. failed requests across several endpoints).&lt;/P&gt;&lt;P&gt;The basic success formula is the usual one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;success = 100 * (total_requests - failed_requests) / total_requests &lt;/LI-CODE&gt;&lt;P&gt;This works correctly as long as there is traffic.&lt;/P&gt;&lt;P&gt;However, I’m struggling with the &lt;STRONG&gt;edge case where total_requests = 0&lt;/STRONG&gt;, which can legitimately happen (for example during maintenance windows, upgrades, or when the service is intentionally unavailable and receives no traffic).&lt;/P&gt;&lt;H3&gt;Observations so far&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;default(0) works as expected for &lt;STRONG&gt;error metrics&lt;/STRONG&gt; (failed request count).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Applying default() or value to &lt;STRONG&gt;total request metrics&lt;/STRONG&gt; either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;is rejected by the metric selector (for example ...total...Requests:count:default(0)), or&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;produces syntactically valid expressions but leads to &lt;STRONG&gt;unexpected SLO values and burn rates&lt;/STRONG&gt; (for example ...total...Requests:value:default(0)).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From a pure math perspective, this does not necessarily imply a division-by-zero problem — the numerator would also be 0, and the denominator can even be guarded with a non-zero default (for example default(1)) to keep the formula mathematically valid.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When total requests are zero, the SLO evaluation either becomes &lt;STRONG&gt;N/A&lt;/STRONG&gt; or produces &lt;STRONG&gt;non-intuitive results&lt;/STRONG&gt; if workarounds are attempted (for example very low percentages like 4%).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Example expression&lt;/H3&gt;&lt;P&gt;This expression works correctly &lt;STRONG&gt;as long as total requests are greater than zero&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;100 *
(
  (
    (
      calc:service.totalService1Requests
      + calc:service.service2Requests
    )
    -
    (
      calc:service.errorService1Requests:count:default(0)
      + calc:service.errorService2Requests:count:default(0)
    )
  )
  /
  (
    calc:service.totalService1Requests
    + calc:service.totalService2Requests
  )
)&lt;/LI-CODE&gt;&lt;H3&gt;Questions&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is it &lt;STRONG&gt;by design&lt;/STRONG&gt; that traffic-based SLOs in Dynatrace cannot meaningfully evaluate to &lt;STRONG&gt;100% when total_requests = 0&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any &lt;STRONG&gt;recommended pattern&lt;/STRONG&gt; to handle this case within a &lt;STRONG&gt;single combined SLO&lt;/STRONG&gt; (for example, treating “no traffic” as healthy)?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’d like to avoid workarounds that distort the SLO math or burn-rate calculation, and instead understand the &lt;STRONG&gt;officially supported behavior and best practices&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2026 18:51:36 GMT</pubDate>
    <dc:creator>deni</dc:creator>
    <dc:date>2026-01-07T18:51:36Z</dc:date>
    <item>
      <title>How to correctly model a traffic-based SLO when total request count can be zero?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292626#M2468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m trying to define a &lt;STRONG&gt;combined, traffic-based availability SLO&lt;/STRONG&gt; in Dynatrace, built from multiple calculated service metrics (for example, total requests vs. failed requests across several endpoints).&lt;/P&gt;&lt;P&gt;The basic success formula is the usual one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;success = 100 * (total_requests - failed_requests) / total_requests &lt;/LI-CODE&gt;&lt;P&gt;This works correctly as long as there is traffic.&lt;/P&gt;&lt;P&gt;However, I’m struggling with the &lt;STRONG&gt;edge case where total_requests = 0&lt;/STRONG&gt;, which can legitimately happen (for example during maintenance windows, upgrades, or when the service is intentionally unavailable and receives no traffic).&lt;/P&gt;&lt;H3&gt;Observations so far&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;default(0) works as expected for &lt;STRONG&gt;error metrics&lt;/STRONG&gt; (failed request count).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Applying default() or value to &lt;STRONG&gt;total request metrics&lt;/STRONG&gt; either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;is rejected by the metric selector (for example ...total...Requests:count:default(0)), or&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;produces syntactically valid expressions but leads to &lt;STRONG&gt;unexpected SLO values and burn rates&lt;/STRONG&gt; (for example ...total...Requests:value:default(0)).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From a pure math perspective, this does not necessarily imply a division-by-zero problem — the numerator would also be 0, and the denominator can even be guarded with a non-zero default (for example default(1)) to keep the formula mathematically valid.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When total requests are zero, the SLO evaluation either becomes &lt;STRONG&gt;N/A&lt;/STRONG&gt; or produces &lt;STRONG&gt;non-intuitive results&lt;/STRONG&gt; if workarounds are attempted (for example very low percentages like 4%).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Example expression&lt;/H3&gt;&lt;P&gt;This expression works correctly &lt;STRONG&gt;as long as total requests are greater than zero&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;100 *
(
  (
    (
      calc:service.totalService1Requests
      + calc:service.service2Requests
    )
    -
    (
      calc:service.errorService1Requests:count:default(0)
      + calc:service.errorService2Requests:count:default(0)
    )
  )
  /
  (
    calc:service.totalService1Requests
    + calc:service.totalService2Requests
  )
)&lt;/LI-CODE&gt;&lt;H3&gt;Questions&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is it &lt;STRONG&gt;by design&lt;/STRONG&gt; that traffic-based SLOs in Dynatrace cannot meaningfully evaluate to &lt;STRONG&gt;100% when total_requests = 0&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any &lt;STRONG&gt;recommended pattern&lt;/STRONG&gt; to handle this case within a &lt;STRONG&gt;single combined SLO&lt;/STRONG&gt; (for example, treating “no traffic” as healthy)?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’d like to avoid workarounds that distort the SLO math or burn-rate calculation, and instead understand the &lt;STRONG&gt;officially supported behavior and best practices&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 18:51:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292626#M2468</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2026-01-07T18:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly model a traffic-based SLO when total request count can be zero?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292631#M2469</link>
      <description>&lt;DIV&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp; can you be more specific with the errors and results you have? (screenshots please).&lt;BR /&gt;I believe that this is caused by the way how (classic) SLOs are calculated - the SLO uses inf resolution. This essentially breaks metric expressions as there are single values used instead of timeseries as input for the expression. In other words - a division of averages is not the same as the average of divisions.&lt;BR /&gt;&lt;BR /&gt;You can see that, for example, in the playground, I took a "zero" only metric - as an example&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://wkf10640.live.dynatrace.com/ui/data-explorer?gtf=c_1767815763077_1767822963077&amp;amp;gf=all#eyJ2ZXJzaW9uIjoyLCJjb25maWciOnsiYm91bmRzIjp7fSwiY29uZmlndXJlZCI6ZmFsc2UsImVkaXRhYmxlIjp0cnVlLCJuYW1lIjoiRGF0YSBleHBsb3JlciByZXN1bHRzIiwidGlsZVR5cGUiOiJEQVRBX0VYUExPUkVSIiwiY3VzdG9tTmFtZSI6IkRhdGEgZXhwbG9yZXIgcmVzdWx0cyIsInF1ZXJpZXMiOlt7ImlkIjoiQSIsImVuYWJsZWQiOnRydWUsIm1ldHJpY1NlbGVjdG9yIjoiMTAwKlxuKGNvbS5keW5hdHJhY2UuZXh0ZW5zaW9uLnNubXAtZ2VuZXJpYy1jaXNjby1kZXZpY2Uuc25tcC5pbi5iYWQudmFsdWVzLmNvdW50OnNwbGl0QnkoKVxuLyBjb20uZHluYXRyYWNlLmV4dGVuc2lvbi5zbm1wLWdlbmVyaWMtY2lzY28tZGV2aWNlLnNubXAuaW4uYmFkLnZhbHVlcy5jb3VudDpzcGxpdEJ5KCkpOmRlZmF1bHQoMSkiLCJzcGxpdEJ5IjpbXX1dLCJ2aXN1YWxDb25maWciOnsidGhyZXNob2xkcyI6W3sidmlzaWJsZSI6dHJ1ZSwicnVsZXMiOlt7ImNvbG9yIjoiIzdkYzU0MCJ9LHsiY29sb3IiOiIjZjVkMzBmIn0seyJjb2xvciI6IiNkYzE3MmEifV19XSwiZ2xvYmFsIjp7fSwicnVsZXMiOltdLCJ0eXBlIjoiR1JBUEhfQ0hBUlQiLCJheGVzIjp7InhBeGlzIjp7ImRpc3BsYXlOYW1lIjoiIiwidmlzaWJsZSI6dHJ1ZX0sInlBeGVzIjpbeyJkaXNwbGF5TmFtZSI6IiIsInZpc2libGUiOnRydWUsImRlZmF1bHRBeGlzIjp0cnVlLCJtaW4iOiJBVVRPIiwibWF4IjoiQVVUTyIsInBvc2l0aW9uIjoiTEVGVCIsInF1ZXJ5SWRzIjpbIkEiXX0seyJkaXNwbGF5TmFtZSI6IiIsInZpc2libGUiOnRydWUsIm1pbiI6IkFVVE8iLCJtYXgiOiJBVVRPIiwicG9zaXRpb24iOiJSSUdIVCIsInF1ZXJ5SWRzIjpbIkIiXSwiZGVmYXVsdEF4aXMiOnRydWV9XX0sImhlYXRtYXBTZXR0aW5ncyI6eyJ5QXhpcyI6IlZBTFVFIiwic2hvd0xhYmVscyI6ZmFsc2V9LCJob25leWNvbWJTZXR0aW5ncyI6eyJzaG93TGVnZW5kIjp0cnVlLCJzaG93SGl2ZSI6dHJ1ZX0sImdyYXBoQ2hhcnRTZXR0aW5ncyI6eyJjb25uZWN0TnVsbHMiOmZhbHNlfSwic2luZ2xlVmFsdWVTZXR0aW5ncyI6eyJsaW5rVGlsZUNvbG9yVG9UaHJlc2hvbGQiOnRydWUsInNob3dTcGFya0xpbmUiOnRydWUsInNob3dUcmVuZCI6dHJ1ZX0sImlzVGFibGVQYWdpbmF0aW9uRW5hYmxlZCI6ZmFsc2V9LCJxdWVyaWVzU2V0dGluZ3MiOnsicmVzb2x1dGlvbiI6IiJ9LCJiYXNlbGluZUNvbmZpZ3MiOltdfX0=" target="_self"&gt;metric expression in Data Explorer with Graph chart&lt;/A&gt;&amp;nbsp;- SLO expression like yours- 100*(success/total):default(1)&lt;/LI&gt;&lt;LI&gt;&lt;A class="" href="https://wkf10640.live.dynatrace.com/ui/data-explorer?gtf=c_1767814630493_1767821830493&amp;amp;gf=all#eyJ2ZXJzaW9uIjoyLCJjb25maWciOnsiYm91bmRzIjp7fSwiY29uZmlndXJlZCI6ZmFsc2UsImVkaXRhYmxlIjp0cnVlLCJuYW1lIjoiRGF0YSBleHBsb3JlciByZXN1bHRzIiwidGlsZVR5cGUiOiJEQVRBX0VYUExPUkVSIiwiY3VzdG9tTmFtZSI6IkRhdGEgZXhwbG9yZXIgcmVzdWx0cyIsInF1ZXJpZXMiOlt7ImlkIjoiQSIsImVuYWJsZWQiOnRydWUsIm1ldHJpY1NlbGVjdG9yIjoiMTAwKlxuKGNvbS5keW5hdHJhY2UuZXh0ZW5zaW9uLnNubXAtZ2VuZXJpYy1jaXNjby1kZXZpY2Uuc25tcC5pbi5iYWQudmFsdWVzLmNvdW50OnNwbGl0QnkoKVxuLyBjb20uZHluYXRyYWNlLmV4dGVuc2lvbi5zbm1wLWdlbmVyaWMtY2lzY28tZGV2aWNlLnNubXAuaW4uYmFkLnZhbHVlcy5jb3VudDpzcGxpdEJ5KClcbik6ZGVmYXVsdCgxKSIsInNwbGl0QnkiOltdfV0sInZpc3VhbENvbmZpZyI6eyJ0aHJlc2hvbGRzIjpbeyJ2aXNpYmxlIjp0cnVlLCJydWxlcyI6W3siY29sb3IiOiIjN2RjNTQwIn0seyJjb2xvciI6IiNmNWQzMGYifSx7ImNvbG9yIjoiI2RjMTcyYSJ9XX1dLCJnbG9iYWwiOnt9LCJydWxlcyI6W10sInR5cGUiOiJTSU5HTEVfVkFMVUUiLCJoZWF0bWFwU2V0dGluZ3MiOnsieUF4aXMiOiJWQUxVRSIsInNob3dMYWJlbHMiOmZhbHNlfSwiaG9uZXljb21iU2V0dGluZ3MiOnsic2hvd0xlZ2VuZCI6dHJ1ZSwic2hvd0hpdmUiOnRydWV9LCJncmFwaENoYXJ0U2V0dGluZ3MiOnsiY29ubmVjdE51bGxzIjpmYWxzZX0sInNpbmdsZVZhbHVlU2V0dGluZ3MiOnsibGlua1RpbGVDb2xvclRvVGhyZXNob2xkIjp0cnVlLCJzaG93U3BhcmtMaW5lIjp0cnVlLCJzaG93VHJlbmQiOnRydWV9LCJpc1RhYmxlUGFnaW5hdGlvbkVuYWJsZWQiOmZhbHNlfSwicXVlcmllc1NldHRpbmdzIjp7InJlc29sdXRpb24iOiIifSwiYmFzZWxpbmVDb25maWdzIjpbXX19" target="_self"&gt;the same&amp;nbsp;metric expression in Data Explorer&lt;/A&gt;&amp;nbsp;- but as a single value, &lt;STRONG&gt;leaving you with the default fold aggregation&lt;/STRONG&gt;. This needs to be set to avg - but you cannot do that in SLO definition. Essentially, this is how SLO is calculated.&lt;/LI&gt;&lt;LI&gt;&lt;A class="" href="https://wkf10640.live.dynatrace.com/ui/data-explorer?gtf=c_1767814743294_1767821943294&amp;amp;gf=all#eyJ2ZXJzaW9uIjoyLCJjb25maWciOnsiYm91bmRzIjp7fSwiY29uZmlndXJlZCI6ZmFsc2UsImVkaXRhYmxlIjp0cnVlLCJuYW1lIjoiRGF0YSBleHBsb3JlciByZXN1bHRzIiwidGlsZVR5cGUiOiJEQVRBX0VYUExPUkVSIiwiY3VzdG9tTmFtZSI6IkRhdGEgZXhwbG9yZXIgcmVzdWx0cyIsInF1ZXJpZXMiOlt7ImlkIjoiQSIsImVuYWJsZWQiOnRydWUsIm1ldHJpY1NlbGVjdG9yIjoiMTAwKlxuKGNvbS5keW5hdHJhY2UuZXh0ZW5zaW9uLnNubXAtZ2VuZXJpYy1jaXNjby1kZXZpY2Uuc25tcC5pbi5iYWQudmFsdWVzLmNvdW50OnNwbGl0QnkoKTpmb2xkKGF2Zylcbi8gY29tLmR5bmF0cmFjZS5leHRlbnNpb24uc25tcC1nZW5lcmljLWNpc2NvLWRldmljZS5zbm1wLmluLmJhZC52YWx1ZXMuY291bnQ6c3BsaXRCeSgpOmZvbGQoYXZnKVxuKTpkZWZhdWx0KDEpIiwic3BsaXRCeSI6W119XSwidmlzdWFsQ29uZmlnIjp7InRocmVzaG9sZHMiOlt7InZpc2libGUiOnRydWUsInJ1bGVzIjpbeyJjb2xvciI6IiM3ZGM1NDAifSx7ImNvbG9yIjoiI2Y1ZDMwZiJ9LHsiY29sb3IiOiIjZGMxNzJhIn1dfV0sImdsb2JhbCI6e30sInJ1bGVzIjpbXSwidHlwZSI6IlNJTkdMRV9WQUxVRSIsImhlYXRtYXBTZXR0aW5ncyI6eyJ5QXhpcyI6IlZBTFVFIiwic2hvd0xhYmVscyI6ZmFsc2V9LCJob25leWNvbWJTZXR0aW5ncyI6eyJzaG93TGVnZW5kIjp0cnVlLCJzaG93SGl2ZSI6dHJ1ZX0sImdyYXBoQ2hhcnRTZXR0aW5ncyI6eyJjb25uZWN0TnVsbHMiOmZhbHNlfSwic2luZ2xlVmFsdWVTZXR0aW5ncyI6eyJsaW5rVGlsZUNvbG9yVG9UaHJlc2hvbGQiOnRydWUsInNob3dTcGFya0xpbmUiOnRydWUsInNob3dUcmVuZCI6dHJ1ZX0sImlzVGFibGVQYWdpbmF0aW9uRW5hYmxlZCI6ZmFsc2V9LCJxdWVyaWVzU2V0dGluZ3MiOnsicmVzb2x1dGlvbiI6IiJ9LCJiYXNlbGluZUNvbmZpZ3MiOltdfX0=" target="_self"&gt;metric expression with fold transformation in Data Explorer&lt;/A&gt;&amp;nbsp;will help you in SLO definition, just it breaks the graph representation, as it provides a single value. With more complex SLO expressions, I ended with this approach.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;But your case can be different. Also worth mentioning:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;You miss splitby in the metric selectors in the expression. this can produce unexpected results. use splitby, ideally removing all dimensions if it suits your case - e.g. :splitby()&lt;/LI&gt;&lt;LI&gt;There is a success rate metric&amp;nbsp;builtin:service.successes.server.rate and also success count metrics&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Generally, if there is no value, you can't measure. If there is zero traffic, you can't say your success rate is 100% - as there was no success.&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Jan 2026 21:56:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292631#M2469</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-07T21:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly model a traffic-based SLO when total request count can be zero?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292666#M2470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the references — I’ll review them.&lt;/P&gt;&lt;P&gt;Below is some additional context together with screenshots from my &lt;STRONG&gt;test environment&lt;/STRONG&gt;.&lt;BR /&gt;The setup is intentionally simple: I’m using a small demo application that I wrote only to reproduce a real customer scenario.&lt;/P&gt;&lt;P&gt;I’ve defined calculated service metrics for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;total request count&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;failed request count&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This setup exists for &lt;STRONG&gt;two endpoints&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;login&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;register&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In total, there are &lt;STRONG&gt;four metrics&lt;/STRONG&gt; (2× total, 2× failed), which are combined into a &lt;STRONG&gt;single, traffic-based SLO&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_0-1767869666956.png" style="width: 485px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31467iA0104C64F66DAF42/image-dimensions/485x233?v=v2" width="485" height="233" role="button" title="deni_0-1767869666956.png" alt="deni_0-1767869666956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is no business use case behind this setup — the goal is only to reproduce and validate the customer’s real production behavior with minimal endpoints.&lt;/P&gt;&lt;P&gt;To generate traffic, I run a script that sends requests for a short period of time.&lt;BR /&gt;Once the script finishes, &lt;STRONG&gt;traffic stops completely&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;On the customer side, this situation can legitimately happen as well (for example during &lt;STRONG&gt;maintenance windows or upgrades&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;Currently:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;There are &lt;STRONG&gt;no failed requests&lt;/STRONG&gt; (error generation is not yet part of the test).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Example data looks like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;20 total - 0 failed / 20 total&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;later: 0 total - 0 failed / 0 total when traffic stops&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The SLO expression &lt;STRONG&gt;compiles successfully&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_1-1767870246525.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31468iDEC17F7CA1DB2F64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_1-1767870246525.png" alt="deni_1-1767870246525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but when I press &lt;STRONG&gt;“Evaluate SLO”&lt;/STRONG&gt;, the evaluation shows this - I don't understand where these % comes from.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_2-1767870611106.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31469i3DB9252F64639477/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_2-1767870611106.png" alt="deni_2-1767870611106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try to apply a default() to the &lt;STRONG&gt;total request metrics&lt;/STRONG&gt;, for example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_3-1767870710939.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31470iB1503F7D76E94988/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_3-1767870710939.png" alt="deni_3-1767870710939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_4-1767870764476.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31471iCFD264EDEB3FA013/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_4-1767870764476.png" alt="deni_4-1767870764476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know why the error is different even that the code is the same - sometimes I see the first error and sometimes the second one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I can write it like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_5-1767870864555.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31472i8AD619CC0E474C79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_5-1767870864555.png" alt="deni_5-1767870864555.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but when I press &lt;STRONG&gt;“Evaluate SLO”&lt;/STRONG&gt;, the evaluation shows this - Again, I don't understand where these % comes from.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deni_6-1767870908852.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31473i517EEAC7EAA7C804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deni_6-1767870908852.png" alt="deni_6-1767870908852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 11:28:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292666#M2470</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2026-01-08T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly model a traffic-based SLO when total request count can be zero?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292671#M2471</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;as I wrote before - add :splitBy() and :auto&amp;nbsp; tranformations. Also add the :fold(avg) (see my example above).&lt;BR /&gt;Always model this in Data Explorer first (easier) and use single value (don't change the fold aggreation in the chart options).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 11:57:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-correctly-model-a-traffic-based-SLO-when-total-request/m-p/292671#M2471</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-08T11:57:01Z</dc:date>
    </item>
  </channel>
</rss>

