<?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: Issues with ArrayMovingSum and Davis Anomaly Detection in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267395#M1608</link>
    <description>&lt;P&gt;Hello!!&lt;/P&gt;&lt;P&gt;I understand! My idea was: if I need to calculate the sum of the last 30 minutes, my Sliding Window needs to be larger than 30. However, this wasn’t enough to prevent false alerts.&lt;/P&gt;&lt;P&gt;In the Notebook, it worked—I can see the correct values. But in Davis Anomaly Detection, it didn’t. I must admit I find using Davis Anomaly Detection a bit confusing because the preview in the Notebook doesn’t reflect the potential alerts that were triggered. I believe the preview in the Notebook should accurately represent the configured settings.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 13:40:13 GMT</pubDate>
    <dc:creator>wellpplava</dc:creator>
    <dc:date>2025-01-14T13:40:13Z</dc:date>
    <item>
      <title>Fix Issues with ArrayMovingSum and Davis Anomaly Detection in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/266563#M1577</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I’m encountering some issues while using &lt;STRONG&gt;ArrayMovingSum&lt;/STRONG&gt; together with &lt;STRONG&gt;DavisAnomalyDetection&lt;/STRONG&gt; and would like to know if anyone has faced something similar or has suggestions.&lt;/P&gt;
&lt;P&gt;I’m trying to use it as an alternative to the &lt;STRONG&gt;rollup&lt;/STRONG&gt; in &lt;STRONG&gt;metric events&lt;/STRONG&gt;, even though I know that &lt;STRONG&gt;ArrayMovingSum&lt;/STRONG&gt; is not exactly a substitute due to its specific characteristics. However, while implementing it, I’ve encountered difficulties that are affecting the expected results.&lt;BR /&gt;&lt;BR /&gt;My query:&lt;BR /&gt;&lt;BR /&gt;timeseries `order-success` = sum(`log.order-success`), interval: 1m&lt;BR /&gt;| fieldsAdd `order-success` = arrayMovingSum(`order-success`, 30)&lt;BR /&gt;| join [ timeseries `total-order` = sum(`log.total-order`)&lt;BR /&gt;| fieldsAdd `total-order` = arrayMovingSum(`total-order`, 30) ], on: { interval }, fields: { `total-order` }&lt;BR /&gt;| fieldsAdd expression = `order-success`[] / `total-order`[]&lt;BR /&gt;| fieldsRemove `total-order`, `order-success`&lt;BR /&gt;| fieldsAdd expression = expression[] * 100&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Basically, the query calculates the success rate and is configured to trigger an alert if any minute within a 30-minute window falls below 75%.&lt;/P&gt;
&lt;P&gt;The issue is that, when looking at the Data Explorer, this value has never been reached, but problems are still being triggered.&lt;/P&gt;
&lt;P&gt;From what I understand, the difference between &lt;STRONG&gt;rollup&lt;/STRONG&gt; and &lt;STRONG&gt;ArrayMovingSum&lt;/STRONG&gt; is that &lt;STRONG&gt;rollup&lt;/STRONG&gt; considers a range beyond the timeframe, while &lt;STRONG&gt;ArrayMovingSum&lt;/STRONG&gt; can accept null values. But if I’m analyzing a 30-minute window, shouldn’t the value be the same?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:49:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/266563#M1577</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2025-12-18T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with ArrayMovingSum and Davis Anomaly Detection</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267014#M1589</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We ran into the same issue after applied the&amp;nbsp;arrayMovingSum from the&amp;nbsp;&lt;STRONG&gt;DavisAnomalyDetection app.&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;False alerts were triggered.&amp;nbsp; The responses from DT support is as the followings:&amp;nbsp;&lt;BR /&gt;1.&amp;nbsp;suggest moving away from arrayMovingSum as its generally not recommended for alerting as it can produce unexpected results such as this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. For our second suggestion, we would advise implementing a 3-5 minute query offset as we suspect there could be delays in the metric.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really like the idea of using the&amp;nbsp;arrayMovingSum.&amp;nbsp; It supposed to help us to smooth out some isolated spikes to reduce the false alerts.&amp;nbsp; I am looking forward for any recommendations.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:25:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267014#M1589</guid>
      <dc:creator>eugene_chuang</dc:creator>
      <dc:date>2025-01-09T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with ArrayMovingSum and Davis Anomaly Detection</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267023#M1590</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Almost all of our alerts are built with "rollup", precisely to add intervals of 5, 10, 30 minutes... We have a lot of business alerts.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It's really missing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 17:17:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267023#M1590</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2025-01-09T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with ArrayMovingSum and Davis Anomaly Detection</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267373#M1604</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/69551"&gt;@wellpplava&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/27778"&gt;@eugene_chuang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;arrayMoving and rollup are sadly not 100% the same as written here -&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/metrics-selector-conversion#rollup-transformation" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/metrics-selector-conversion#rollup-transformation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you have an arrayMovingSum from 30 minutes and you had a setup of a sliding window of 5 minutes in the anomaly detector, it will than fetch 5 minutes, which is not enough to calculate the sum of 30 minutes. So for that example please increase the sliding window of 30 to fetch 30 data points to calculate the sum correctly. I do understand that is hard to understand and we are working on a new anomaly detector that allows different intervals.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please let me know if you still facing some issues&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you very much&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best greetings&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 12:23:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267373#M1604</guid>
      <dc:creator>DavidBruendl</dc:creator>
      <dc:date>2025-01-14T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with ArrayMovingSum and Davis Anomaly Detection</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267395#M1608</link>
      <description>&lt;P&gt;Hello!!&lt;/P&gt;&lt;P&gt;I understand! My idea was: if I need to calculate the sum of the last 30 minutes, my Sliding Window needs to be larger than 30. However, this wasn’t enough to prevent false alerts.&lt;/P&gt;&lt;P&gt;In the Notebook, it worked—I can see the correct values. But in Davis Anomaly Detection, it didn’t. I must admit I find using Davis Anomaly Detection a bit confusing because the preview in the Notebook doesn’t reflect the potential alerts that were triggered. I believe the preview in the Notebook should accurately represent the configured settings.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 13:40:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Issues-with-ArrayMovingSum-and-Davis-Anomaly-Detection-in/m-p/267395#M1608</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2025-01-14T13:40:13Z</dc:date>
    </item>
  </channel>
</rss>

