summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-05-10 12:26:49 +0300
committerGitHub <noreply@github.com>2022-05-10 12:26:49 +0300
commit88559a49b3309755c15d29af793e8a8a5b3bc11d (patch)
tree228f08f5bf6f6d45b4a26d198ef63e76bf2f6254 /health
parented8b489b6cec5ca4c327d314ec1cd28de1b68d47 (diff)
fix(proc.plugin): consider ZFS ARC as cache when collecting memory usage on Linux (#12847)
Diffstat (limited to 'health')
-rw-r--r--health/health.d/ram.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf
index 6e6e3b4003..bb6817f231 100644
--- a/health/health.d/ram.conf
+++ b/health/health.d/ram.conf
@@ -6,7 +6,7 @@
class: Utilization
type: System
component: Memory
- os: linux freebsd
+ os: freebsd
hosts: *
calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz - $zfs.arc_size.min)
every: 10s
@@ -20,7 +20,7 @@ component: Memory
component: Memory
os: linux
hosts: *
- calc: ($used - $used_ram_to_ignore) * 100 / ($used + $cached + $free + $buffers)
+ calc: $used * 100 / ($used + $cached + $free + $buffers)
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))