# Is "Host Health" available in a dashboard metric and in the API?

**URL:** <https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, hosts-classic, dynatrace-api\
**Created:** [November 8, 2023, 2:09pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520 "2023-11-08T14:09:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [November 8, 2023, 2:09pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520/1 "2023-11-08T14:09:20Z")

</div>

I know that we can create a dashboard object for “Host Health” and then filter on custom management zone, but can we call it as a metric on a dashboard object and/or in the API?

Thanks,

Lou

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 8, 2023, 2:20pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520/2 "2023-11-08T14:20:46Z")

</div>

Hi,

From documentation:

=====

### Host health

Displays the number of hosts (operating system instances, whether physical and virtual) in your environment compared to the number of hosts in your environment that are currently affected by problems. Each host instance equates to a Dynatrace OneAgent installed in your environment.

=====

So you can use this metric for example:

builtin:host.availability.state

Reported states:

- _UP - host working, OneAgent active and sending data_
- _NO\_DATA - host working, OneAgent active but not sending data_
- _NO\_DATA\_AGENT\_INACTIVE - host working, OneAgent inactive (disabled manually in configuration) and not sending data_
- _SHUTDWON\_HOST - host has been shut down_
- _UNMONITORED\_AGENT\_STOPPED - host unmonitored: OneAgent stopped_
- _UNMONITORED\_AGENT\_UPGRADE - host unmonitored: OneAgent in upgrade_
- _UNMONITORED\_AGENT\_UNINSTALLED - host unmonitored: OneAgent uninstalled_

Radek

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 8, 2023, 2:36pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520/3 "2023-11-08T14:36:05Z")

</div>

However, this will not address all cases. Problems can be with CPU, memory, etc on the host. You need to reinforce different metrics.

---

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [November 8, 2023, 2:45pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520/4 "2023-11-08T14:45:29Z")

</div>

Thanks!!

---

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [November 8, 2023, 3:50pm UTC](https://community.dynatrace.com/t/is-host-health-available-in-a-dashboard-metric-and-in-the-api/42520/5 "2023-11-08T15:50:35Z")

</div>

This seems to be more of an up or down thing, not if any problems were detected per host. Would that be a different counter. In colloquial terms, I want the red or green state that you would see in a host health graph.

Any advice appreciated.
