summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-06-16 16:38:51 +0300
committerGitHub <noreply@github.com>2022-06-16 16:38:51 +0300
commit131e5f5f6e5822a1fd8107c228f1a9a49f08e847 (patch)
treef44a0ef13b3a6898639144d07187b16a8707f9f8 /health
parentc39ebcb87d21948931096b742cb07ecdae381c88 (diff)
Add mem.available chart to FreeBSD (#13140)
Diffstat (limited to 'health')
-rw-r--r--health/health.d/ram.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf
index ff5f3ac173..ab382c43b1 100644
--- a/health/health.d/ram.conf
+++ b/health/health.d/ram.conf
@@ -54,7 +54,7 @@ host labels: _is_k8s_node = false
component: Memory
os: freebsd
hosts: *
- calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers - $used_ram_to_ignore + $cache + $free + $inactive)
+ calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers + $cache + $free + $inactive)
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))
@@ -64,13 +64,13 @@ component: Memory
to: sysadmin
alarm: ram_available
- on: system.ram
+ on: mem.available
class: Utilization
type: System
component: Memory
os: freebsd
hosts: *
- calc: ($free + $inactive + $cache) * 100 / ($free + $active + $inactive + $wired + $cache + $laundry + $buffers)
+ calc: $avail * 100 / ($system.ram.free + $system.ram.active + $system.ram.inactive + $system.ram.wired + $system.ram.cache + $system.ram.laundry + $system.ram.buffers)
units: %
every: 10s
warn: $this < (($status >= $WARNING) ? (15) : (10))