# How can I check the avaiability of a Heartbeat monitor in Elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942>\
**Category:** Elasticsearch\
**Created:** [April 13, 2023, 3:30pm UTC](https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942 "2023-04-13T15:30:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Post date:** [April 13, 2023, 3:30pm UTC](https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942/1 "2023-04-13T15:30:36Z")

</div>

I have a few monitors in heartbeat which I am going to plan a few alerts. One of the alerts should be aiming for the avaiability of a monitor in the uptime in a range of a whole period of time (could be a day or a month). So it wont be alerting as soon as a monitor gets "down" but when the avaiability falls into a certain level (like \< 80% or something like that).  
 ![screenshot of the uptime page](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cb9337a97117862c498b02391694634240e4ceb4.png)

The thing is, I have yet to find a way to find this column in the elasticsearch so I could make a query for the alert. Is there a column with this avaiability or is it just an inside calculation between the ratio between the "up" in monitors and the "down" ones?

For aditional context, once I have the avaiability taken. If it reaches a certain level, the alert will write a message into the index so the Elastalert2 (the tool we use for opening tickets in our management API) will take the message and trigger an alert for the team.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 13, 2023, 4:14pm UTC](https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942/2 "2023-04-13T16:14:17Z")

</div>

Hi @SamuelSMendes What version of the stack?

Uptime -\> Alert and Rules -\> Monitor Status Rules

Is this what you are looking for?

 ![Screenshot 2023-04-13 at 9.13.10 AM](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6ac03f86a83477f8137fecfc9534ab652e378b1e.jpeg)

---

<div class="post-metadata">

**Author:** ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Post date:** [April 13, 2023, 4:59pm UTC](https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942/3 "2023-04-13T16:59:47Z")

</div>

Now that's embarassing. It was just what I was looking for, just needed to scroll down. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 11, 2023, 5:00pm UTC](https://discuss.elastic.co/t/how-can-i-check-the-avaiability-of-a-heartbeat-monitor-in-elasticsearch/329942/4 "2023-05-11T17:00:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
