mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
Fix Elasticsearch "No new documents" alert.
Prometheus rate() function calculates the per-second average rate of increase. This means the alert gets triggered whenever during last 10 minutes there were less than 1 document ingested *per second* (60 documents per minute). Signed-off-by: Piotr Parczewski <piotr@stackhpc.com>
This commit is contained in:
parent
b4bcdaf8f2
commit
f7d08e364b
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ groups:
|
|||
severity: warning
|
||||
- name: Elasticsearch no new documents
|
||||
description: No new documents for 10 min!
|
||||
query: 'rate(elasticsearch_indices_docs{es_data_node="true"}[10m]) < 1'
|
||||
query: 'increase(elasticsearch_indices_docs{es_data_node="true"}[10m]) < 1'
|
||||
severity: warning
|
||||
|
||||
- name: Cassandra
|
||||
|
|
|
|||
Loading…
Reference in a new issue