# Cluster Health Alert Monitors

**URL:** <https://forum.opensearch.org/t/cluster-health-alert-monitors/606>\
**Category:** Alerting\
**Created:** [May 3, 2019, 12:07am UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606 "2019-05-03T00:07:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shah](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/shah/32/150_2.png) [@shah](https://forum.opensearch.org/u/shah)\
**Post date:** [May 3, 2019, 12:07am UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/1 "2019-05-03T00:07:25Z")

</div>

I would like to create Monitors that triggers on `Cluster Health` stats, however I cannot find any information on which index this information is stored in in order to populate an `index` based `DSL` query for the monitor.

As far as I can tell, `Cluster Health` information is only available from the `_cluster` api. How can I go about accomplishing this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dbbaughe](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dbbaughe](https://forum.opensearch.org/u/dbbaughe)\
**Post date:** [May 3, 2019, 4:26pm UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/2 "2019-05-03T16:26:08Z")

</div>

Hi @shah,

We currently do not support monitoring cluster health stats through the API directly. The current workaround would be you having a process periodically ingest the current cluster health stats into Elasticsearch and monitoring that index.

I have created an issue to track this so we can support this directly from Alerting:  
[https://github.com/opendistro-for-elasticsearch/alerting/issues/47](https://github.com/opendistro-for-elasticsearch/alerting/issues/47)

---

<div class="post-metadata">

**Author:** ![shah](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/shah/32/150_2.png) [@shah](https://forum.opensearch.org/u/shah)\
**Post date:** [May 3, 2019, 5:06pm UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/3 "2019-05-03T17:06:04Z")

</div>

@dbbaughe thanks for the update and the workaround suggestion, we were thinking of implementing something inline with the workaround you suggested.

---

<div class="post-metadata">

**Author:** ![AxelMonroyX](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/axelmonroyx/32/393_2.png) [@AxelMonroyX](https://forum.opensearch.org/u/AxelMonroyX)\
**Post date:** [August 13, 2019, 12:00am UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/4 "2019-08-13T00:00:28Z")

</div>

This would be awesome but maybe you shouldn’t monitor elasticsearch with a elasticsearch-plugin.  
If you use the elasticsearch service on AWS you can get the info from cloudwatch

Another option is to use an external app to monitor your cluster

You can use

- [Prometheus - https://prometheus.io/docs/practices/alerting/](https://prometheus.io/docs/practices/alerting/)
- [ElasticSearch Exporter - https://github.com/justwatchcom/elasticsearch\_exporter](https://github.com/justwatchcom/elasticsearch_exporter)

and set alerts based on this metrics:

- elasticsearch\_cluster\_health\_up

- elasticsearch\_cluster\_health\_status

---

<div class="post-metadata">

**Author:** ![praveensameneni](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@praveensameneni](https://forum.opensearch.org/u/praveensameneni)\
**Post date:** [September 10, 2020, 3:52pm UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/5 "2020-09-10T15:52:02Z")

</div>

Closing the issue as there are no further discussions.

---

<div class="post-metadata">

**Author:** ![praveensameneni](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@praveensameneni](https://forum.opensearch.org/u/praveensameneni)\
**Post date:** [September 10, 2020, 3:52pm UTC](https://forum.opensearch.org/t/cluster-health-alert-monitors/606/6 "2020-09-10T15:52:17Z")

</div>

Closed on September 10, 2020, 3:52pm UTC


