# Host availability state metric of 'no\_data'

**URL:** <https://community.dynatrace.com/t/host-availability-state-metric-of-no-data/50452>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, infrastructure-operations\
**Created:** [February 25, 2025, 3:18pm UTC](https://community.dynatrace.com/t/host-availability-state-metric-of-no-data/50452 "2025-02-25T15:18:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [February 25, 2025, 3:18pm UTC](https://community.dynatrace.com/t/host-availability-state-metric-of-no-data/50452/1 "2025-02-25T15:18:59Z")

</div>

I’m trying to alert on the host availability state metric of no\_data but due to the fact that this metric is not plotted every single minute when there is no data being sent (seems to just be the first minute only), it complicates the alerting I’m trying to do. Is there any log file that is maybe updated when data is being sent so that we can monitor that log file instead and alert if there is no activity being logged in the file?

My current method I am alerting if no values of ‘up’ are received by toggling the ‘alert on missing data’ but the problem with that is in situations where the agent is purposely disabled, the alert will trigger OR in situations where the host is decommed the alert will still trigger.

> **[Host availability](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/monitoring/host-monitoring/host-availability)**
>
> Check host availability, interpret host availability states, and see how maintenance windows are reflected in host availability charts.

 ![sivart_89_0-1740496448429.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/6/d6e3304d7c113847dc6c8876c849947cfaaa99a1.png)

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [March 6, 2025, 4:00am UTC](https://community.dynatrace.com/t/host-availability-state-metric-of-no-data/50452/2 "2025-03-06T04:00:00Z")

</div>

[@sivart\_89](https://community.dynatrace.com/user/17361)&nbsp;Have you tried using the nonempty parameter in DQL? It ensures that you get a result even when no data matches the filter such as “no\_data” state as in your case

> **[DQL metric commands](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/metric-commands)**
>
> DQL metric commands

Here is an example you can refer

> **[DQL timeseries examples for Metrics](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/dql-examples)**
>
> DQL timeseries examples

I tried it with reboot\_graceful which is similar to&nbsp;no\_data state and it seems to be giving the expected outcome

```auto
timeseries reboot_graceful = sum(dt.host.availability, default:0),
    nonempty:true,
    filter:{availability.state == "reboot_graceful"}

```

 ![p_devulapalli_0-1741233326993.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fa58e6651e8fc7221685c87f137c4ad5b52a211b.png)

Hope this helps
