<?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: Issue with dt.host.availability in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303842#M3470</link>
    <description>&lt;P&gt;this is because the Oneagent doesn’t send each minute. The data is null, because of the default 0, you are defaulting it to 0. Therefore it is “Host unavailable” &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2026 14:55:14 GMT</pubDate>
    <dc:creator>michiel_otten</dc:creator>
    <dc:date>2026-08-27T14:55:14Z</dc:date>
    <item>
      <title>Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303752#M3465</link>
      <description>&lt;P&gt;Can someone explain why does this DQL query return Host Unavailable for any host every 5 minutes?&lt;/P&gt;&lt;P&gt;If we change the interval to another value, it seems to return host_unavailable at multiples of that interval.&lt;/P&gt;&lt;P&gt;The condition appears to be true for roughly one minute within each interval.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries values = avg(dt.host.availability, default: 0),
    by: {
      dt.entity.host,
      dt.entity.host_group
    },
    filter: {
      matchesPhrase(entityName(dt.entity.host), "example")
    },
    interval: 5m,
    from: -15m

    | fieldsAdd host_availability = arrayLast(values)
    | filter host_availability == 0

    | summarize affected_items = count()
    | filter affected_items &amp;gt; 0
    | fieldsAdd failed_condition = "HOST_UNAVAILABLE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2026 09:41:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303752#M3465</guid>
      <dc:creator>JoãoSilva</dc:creator>
      <dc:date>2026-08-25T09:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303760#M3466</link>
      <description>&lt;P class=""&gt;With missing data, the value is returned as null. It could be that the most recent minute has not been fully processed or ingested yet, which makes the last datapoint appear missing. Default: 0 would the put it as 0.&lt;/P&gt;&lt;P&gt;Using to: -1m could help here by excluding the most recent, potentially incomplete minute from the query.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2026 11:58:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303760#M3466</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2026-08-25T11:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303841#M3469</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4669"&gt;@michiel_otten&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The issue, which we've replicated across several tenants is that it most of the times works, but sometimes it does not. Not all minutes behave similarly, and it seems it might have something to do with the interval value. The query above has the following behavior.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Minute 0: gives "Host Unavailable"&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Minute 1: does not give "Host Unavailable"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Minute 2: does not give "Host Unavailable"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Minute 3: does not give "Host Unavailable"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Minute 4: does not give "Host Unavailable"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Minute 5: gives "Host Unavailable"&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Minute 6: does not give "Host Unavailable"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Aug 2026 14:38:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303841#M3469</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-08-27T14:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303842#M3470</link>
      <description>&lt;P&gt;this is because the Oneagent doesn’t send each minute. The data is null, because of the default 0, you are defaulting it to 0. Therefore it is “Host unavailable” &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 14:55:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303842#M3470</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2026-08-27T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303843#M3471</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4669"&gt;@michiel_otten&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Don't understand: "Oneagent doesn’t send each minute"&lt;BR /&gt;I have been keeping doing CTRL-F5, with different "interval" values, and it doesn't make any sense. Sometimes it gives “Host unavailable” with intervals of 1 and 3, and not with 2, 4 and 5; sometimes it does not; other times it's with 1 and 2. It's very easy to replicate.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 15:36:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303843#M3471</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-08-27T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dt.host.availability</title>
      <link>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303850#M3472</link>
      <description>&lt;P&gt;&amp;nbsp; perhaps I've misread but the interval is not so relevant for the question imo.&lt;BR /&gt;Independent of the interval, somethimes the last minute has not arrived yet, resulting in an&amp;nbsp;&lt;EM&gt;null&lt;/EM&gt;&amp;nbsp;value. Therefore when defaulting to 0, the last minute will result in Host Unavailable.&lt;BR /&gt;&lt;BR /&gt;You could fix this adding to: -1m in the query.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I'm missing the point, I'm sorry.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 17:51:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Issue-with-dt-host-availability/m-p/303850#M3472</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2026-08-27T17:51:11Z</dc:date>
    </item>
  </channel>
</rss>

