Improve JVM "JVM memory filling up" alert by summing up all the heap areas which include a separate entry for the Eden Space, Survivor Space and Tenured Gen.

This commit is contained in:
Tosin Ogunrinde 2020-12-31 09:16:09 +00:00
parent ebf402aa7d
commit 21817c3551

View file

@ -1071,7 +1071,7 @@ groups:
rules:
- name: JVM memory filling up
description: JVM memory is filling up (> 80%)
query: 'sum by (instance)(jvm_memory_used_bytes{area="heap"}) / sum by (instance)(jvm_memory_max_bytes{area="heap"}) * 100 > 80'
query: '(sum by (instance)(jvm_memory_used_bytes{area="heap"}) / sum by (instance)(jvm_memory_max_bytes{area="heap"})) * 100 > 80'
severity: warning
- name: Sidekiq