know if one or more indexes are marked as read only

14 views
Skip to first unread message

Veeresh Reddy

unread,
Mar 22, 2020, 10:56:54 PM3/22/20
to Prometheus Users

When an elastic index moves into a read only state, it can prevent additional data being written to the cluster. Typically a read only state occurs when an index in on a node that reaches 85% disk space used.

The cluster does have an API to get details for each index, so it may be possible to scan each index and check if it's in read only state.

  • Research ability to know if one or more indexes are marked as read only
  • Research if we can generate an alert somewhere - likely grafana - when this happens

would anyone please let me know how to create an alert for this ES when this happens?

Brian Candler

unread,
Mar 23, 2020, 4:57:12 AM3/23/20
to Prometheus Users
Probably the best place to ask about specifics of monitoring Elasticsearch is on an Elasticsearch mailing list.  Questions like how to query Elasticsearch for read-only state fall into this category.

If you're asking about how to monitor Elasticsearch with Prometheus: googling for "elasticsearch prometheus metrics" the top two hits are:

Reply all
Reply to author
Forward
0 new messages