# Monitoring of the private locations/Heartbeats

**URL:** <https://discuss.elastic.co/t/monitoring-of-the-private-locations-heartbeats/326601>\
**Category:** Elastic Observability\
**Created:** [February 27, 2023, 2:39pm UTC](https://discuss.elastic.co/t/monitoring-of-the-private-locations-heartbeats/326601 "2023-02-27T14:39:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Savva\_Morozov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/savva_morozov/32/116837_2.png) [@Savva\_Morozov](https://discuss.elastic.co/u/Savva_Morozov)\
**Post date:** [February 27, 2023, 2:39pm UTC](https://discuss.elastic.co/t/monitoring-of-the-private-locations-heartbeats/326601/1 "2023-02-27T14:39:57Z")

</div>

Hello! Are there any recommendations on how to monitor health of the private locations created with Elastic Agents and Heartbeats? For example, I would like to know that all the private locatons/Heartbeats are healthy and receive alerts in case some of them are not reporting data. Currently if my agent stops reporting uptime data of the service, the monitor still shows the monitor state as "Up".

---

<div class="post-metadata">

**Author:** ![philippkahr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philippkahr/32/100137_2.png) [@philippkahr](https://discuss.elastic.co/u/philippkahr)\
**Post date:** [February 27, 2023, 3:03pm UTC](https://discuss.elastic.co/t/monitoring-of-the-private-locations-heartbeats/326601/2 "2023-02-27T15:03:09Z")

</div>

For Elastic Agent, select `Agent metrics` in the policy. Then go to `Infrastructure` in `Observability`, select the host. Select `Create inventory rule`. Select the `alert me if there is no data` checkbox.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ff01e097e1a1496a18599ebd66a143a97291d04e.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/6/e61a59b7358ea9ae531967fe04eee54aef0a1a93.png)
