mirror of
https://github.com/netdata/netdata.git
synced 2025-04-25 21:43:55 +00:00
health: remove ram_in_swap alarm (#10789)
This commit is contained in:
parent
015a6385aa
commit
0041eeee3a
2 changed files with 3 additions and 17 deletions
|
@ -15,18 +15,6 @@
|
|||
info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
|
||||
to: sysadmin
|
||||
|
||||
alarm: ram_in_swap
|
||||
on: system.swap
|
||||
os: linux
|
||||
hosts: *
|
||||
calc: $used * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
|
||||
units: % of RAM
|
||||
every: 10s
|
||||
warn: $this > (($status >= $WARNING) ? (40) : (50))
|
||||
delay: up 30s down 15m multiplier 1.5 max 1h
|
||||
info: the swap memory used, as a percentage of the system RAM
|
||||
to: sysadmin
|
||||
|
||||
alarm: used_swap
|
||||
on: system.swap
|
||||
os: linux freebsd
|
||||
|
|
|
@ -38,14 +38,12 @@ echo ${NETDATA_SYSTEM_CPU_VISIBLETOTAL}
|
|||
|
||||
# what about alarms?
|
||||
set | grep "^NETDATA_ALARM_SYSTEM_SWAP_"
|
||||
NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_STATUS=CRITICAL
|
||||
NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_VALUE=53
|
||||
NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_STATUS=CLEAR
|
||||
NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_VALUE=51
|
||||
|
||||
# let's get the current status of the alarm 'ram in swap'
|
||||
echo ${NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_STATUS}
|
||||
CRITICAL
|
||||
# let's get the current status of the alarm 'used swap'
|
||||
echo ${NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_STATUS}
|
||||
CLEAR
|
||||
|
||||
# is it fast?
|
||||
time curl -s 'http://localhost:19999/api/v1/allmetrics' >/dev/null
|
||||
|
|
Loading…
Add table
Reference in a new issue