Cluster Health Alert Monitors

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!

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:

1 Like

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

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

and set alerts based on this metrics:

  • elasticsearch_cluster_health_up

  • elasticsearch_cluster_health_status

Closing the issue as there are no further discussions.