mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 09:27:26 +08:00
elasticsearch: Alert for no new docs on data nodes only
We can have nodes that are not masters, but don not hold any data. For example the client/coordinating nodes set up by the `stable/elasticsearch` helm chart: https://github.com/helm/charts/tree/master/stable/elasticsearch#client-and-coordinating-nodes And we can also have nodes being data and master nodes simultaneously. So I think, this alert has to look for `es_data_node="true"` to be correct.
This commit is contained in:
parent
9306d8947f
commit
1e2a35e058
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ services:
|
|||
severity: warning
|
||||
- name: Elastic no new documents
|
||||
description: No new documents for 10 min!
|
||||
query: 'rate(elasticsearch_indices_docs{es_master_node="false"}[10m]) < 1'
|
||||
query: 'rate(elasticsearch_indices_docs{es_data_node="true"}[10m]) < 1'
|
||||
severity: warning
|
||||
|
||||
- name: Cassandra
|
||||
|
|
|
|||
Loading…
Reference in a new issue