diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-08-25 09:40:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 09:40:09 +0300 |
commit | 73f6b53d1bffb5a37ed5a0f918e36003e2a3cc77 (patch) | |
tree | f909d3f01922f77ed987532d0b06cfecc99b27b5 /health | |
parent | 09ee20b368db769a73f06540f43308bcd9f53f1b (diff) |
Fix ram level alarms (#11452)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/ram.conf | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf index 98c1e5a76b..6e6e3b4003 100644 --- a/health/health.d/ram.conf +++ b/health/health.d/ram.conf @@ -20,8 +20,7 @@ component: Memory component: Memory os: linux hosts: * -# calc: $used * 100 / ($used + $cached + $free) - calc: ($used - $used_ram_to_ignore) * 100 / ($used + $cached + $free) + calc: ($used - $used_ram_to_ignore) * 100 / ($used + $cached + $free + $buffers) units: % every: 10s warn: $this > (($status >= $WARNING) ? (80) : (90)) @@ -37,7 +36,7 @@ component: Memory component: Memory os: linux hosts: * - calc: ($avail + $system.ram.used_ram_to_ignore) * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers) + calc: $avail * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers) units: % every: 10s warn: $this < (($status >= $WARNING) ? (15) : (10)) |