<?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 Cannot read properties of undefined (reading 'metrics) error for Davis forecast in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Cannot-read-properties-of-undefined-reading-metrics-error-for/m-p/275420#M4962</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am running this query, so far so good, it works.&lt;/P&gt;
&lt;P&gt;timeseries avg(dt.host.disk.used.percent), interval:2h, by: { host.name, dt.entity.host_group, dt.entity.disk }&lt;BR /&gt;, filter: { matchesValue(entityAttr(dt.entity.host_group, "entity.name"), $HostGroup) }&lt;BR /&gt;| fieldsAdd dt.entity.host_group.name = entityName(dt.entity.host_group),dt.entity.disk.name = entityName(dt.entity.disk)&lt;BR /&gt;| fieldsAdd array_max = arrayMax(`avg(dt.host.disk.used.percent)`)&lt;BR /&gt;| filterOut array_max &amp;lt; toDouble($disk_threshold)&lt;/P&gt;
&lt;P&gt;The $ signs are the variables defined in my dashboard. You can replace them with a host group name you have and a random disk threshold, for example 70.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marina_pollehn_0-1744890997625.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27608i1F7990B263563028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marina_pollehn_0-1744890997625.png" alt="marina_pollehn_0-1744890997625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Nevertheless, when I switch to the Davis forecaster, I get this error message. Even if I only want to predict one datapoint I see this message (yes I have more than 1 datapoint) and the refresh icon keeps on spinning (tiles are being loaded). Am I looking at a bug or am I doing something wrong?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marina_pollehn_0-1744890602270.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27606i1E5C8B846AD4513D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marina_pollehn_0-1744890602270.png" alt="marina_pollehn_0-1744890602270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I checked with different timeframes and intervals, if I use a small recent timeframe, it works. Is the disk with the single data point (first image, blue dot) crashing the forecaster? This should not happen, right?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 07:14:22 GMT</pubDate>
    <dc:creator>marina_pollehn</dc:creator>
    <dc:date>2025-04-18T07:14:22Z</dc:date>
    <item>
      <title>Cannot read properties of undefined (reading 'metrics) error for Davis forecast</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Cannot-read-properties-of-undefined-reading-metrics-error-for/m-p/275420#M4962</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am running this query, so far so good, it works.&lt;/P&gt;
&lt;P&gt;timeseries avg(dt.host.disk.used.percent), interval:2h, by: { host.name, dt.entity.host_group, dt.entity.disk }&lt;BR /&gt;, filter: { matchesValue(entityAttr(dt.entity.host_group, "entity.name"), $HostGroup) }&lt;BR /&gt;| fieldsAdd dt.entity.host_group.name = entityName(dt.entity.host_group),dt.entity.disk.name = entityName(dt.entity.disk)&lt;BR /&gt;| fieldsAdd array_max = arrayMax(`avg(dt.host.disk.used.percent)`)&lt;BR /&gt;| filterOut array_max &amp;lt; toDouble($disk_threshold)&lt;/P&gt;
&lt;P&gt;The $ signs are the variables defined in my dashboard. You can replace them with a host group name you have and a random disk threshold, for example 70.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marina_pollehn_0-1744890997625.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27608i1F7990B263563028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marina_pollehn_0-1744890997625.png" alt="marina_pollehn_0-1744890997625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Nevertheless, when I switch to the Davis forecaster, I get this error message. Even if I only want to predict one datapoint I see this message (yes I have more than 1 datapoint) and the refresh icon keeps on spinning (tiles are being loaded). Am I looking at a bug or am I doing something wrong?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marina_pollehn_0-1744890602270.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27606i1E5C8B846AD4513D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marina_pollehn_0-1744890602270.png" alt="marina_pollehn_0-1744890602270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I checked with different timeframes and intervals, if I use a small recent timeframe, it works. Is the disk with the single data point (first image, blue dot) crashing the forecaster? This should not happen, right?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 07:14:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Cannot-read-properties-of-undefined-reading-metrics-error-for/m-p/275420#M4962</guid>
      <dc:creator>marina_pollehn</dc:creator>
      <dc:date>2025-04-18T07:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'metrics) error for Davis forecast</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Cannot-read-properties-of-undefined-reading-metrics-error-for/m-p/275456#M4964</link>
      <description>&lt;P&gt;Okay I solved my own problem :D. The single datapoint of a disk that was only present for a moment kills the analyzer. So if I want to predict the next 7 days based on the last 7, I will need to filter out all disks which do not have sufficient data. As I use 2 hour intervals and 7 days have 84 2-hour intervals, I will filter out all disks with an array size &amp;lt; 84. To be honest, I still consider this a bug which should be fixed though.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;timeseries avg(dt.host.disk.used.percent), interval:2h, by: { host.name, dt.entity.host_group, dt.entity.disk }&lt;BR /&gt;, filter: { matchesValue(entityAttr(dt.entity.host_group, "entity.name"), $HostGroup) }&lt;BR /&gt;| fieldsAdd dt.entity.host_group.name = entityName(dt.entity.host_group),dt.entity.disk.name = entityName(dt.entity.disk)&lt;BR /&gt;| fieldsAdd array_max = arrayMax(avg(dt.host.disk.used.percent))&lt;BR /&gt;| filterOut array_max &amp;lt; toDouble($disk_threshold)&lt;BR /&gt;| filterOut arraySize(avg(dt.host.disk.used.percent))&amp;lt;84&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 20:15:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Cannot-read-properties-of-undefined-reading-metrics-error-for/m-p/275456#M4964</guid>
      <dc:creator>marina_pollehn</dc:creator>
      <dc:date>2025-04-17T20:15:59Z</dc:date>
    </item>
  </channel>
</rss>

