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:06:36 +00:00
parent 3a352d08dc
commit ebf402aa7d

View file

@ -1071,7 +1071,7 @@ groups:
rules:
- name: JVM memory filling up
description: JVM memory is filling up (> 80%)
query: '(jvm_memory_used_bytes{area="heap"} / 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