# How to measure Availability KPIs and downtime from heartbeats?

**URL:** https://discuss.elastic.co/t/how-to-measure-availability-kpis-and-downtime-from-heartbeats/165903
**Category:** Beats
**Tags:** heartbeat
**Created:** [January 27, 2019, 12:59pm UTC](https://discuss.elastic.co/t/how-to-measure-availability-kpis-and-downtime-from-heartbeats/165903 "2019-01-27T12:59:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Adel](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Ahmed\_Adel](https://discuss.elastic.co/u/Ahmed_Adel)
#### Post date: [January 27, 2019, 12:59pm UTC](https://discuss.elastic.co/t/how-to-measure-availability-kpis-and-downtime-from-heartbeats/165903/1 "2019-01-27T12:59:04Z")

</div>

I've configured heartbeat file to send a heartbeat every 30 seconds, now if i received a beat with monitor\_status "down", and the next beat was up.

- Is there are a field represents the downtime between the beats?
- what is the information can i get from this field "beat\_monitor\_duration\_us"?

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [February 1, 2019, 9:54pm UTC](https://discuss.elastic.co/t/how-to-measure-availability-kpis-and-downtime-from-heartbeats/165903/2 "2019-02-01T21:54:17Z")

</div>

This is a great idea.

1. I think it'd be great to have each document include total downtime or uptime. It's kinda tricky in a distributed situation however. It would probably depend on querying back to Elasticsearch at least on startup to handle a heartbeat restart or move to another machine. I've opened an [issue](https://github.com/elastic/beats/issues/10501) here to track it. I think we should build it at some point.
2. The monitor duration tracks how long it took to run the monitor check. That means sending out a request, then receiving downloading and processing the result. Since processing is negligible this maps to the overall performance of your site in most cases.

---

<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: [March 1, 2019, 9:54pm UTC](https://discuss.elastic.co/t/how-to-measure-availability-kpis-and-downtime-from-heartbeats/165903/3 "2019-03-01T21:54:20Z")

</div>

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