@cryptotaxi247 / netdata-1 / commits / f50f503e3

more elastic swap checks

Costa Tsaousis (ktsaou) committed Aug 29, 2016 at 00:42 UTC f50f503e3657025c45ab7306e33bb6226fb2e4d4
2 files changed +5 -4
conf.d/health.d/swap.conf
+4 -4
@@ -5,10 +5,10 @@
5 # we have to convert KB to MB by dividing $this (i.e. the result of the lookup) with 1024
6 calc: $this / 1024 * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
7 every: 1m
8 - warn: $this > 1
9 - crit: $this > 10
8 + warn: $this > 10
9 + crit: $this > 20
10 units: % of RAM
11 - info: the sum of all memory swapped out during the last 30 minutes, as a percentage of the available RAM
11 + info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
12
13 alarm: pcent_of_ram_in_swap
14 on: system.swap
@@ -17,4 +17,4 @@
17 warn: $this > 10
18 crit: $this > 50
19 units: % of RAM
20 - info: the currently used swap space, as a percentage of the available RAM
20 + info: the swap memory used, as a percentage of the system RAM
web/index.html
+1
@@ -2504,6 +2504,7 @@ function alarmsUpdateModal() {
2504 }
2505
2506 html += '<tr><td width="10%" style="text-align:right">check&nbsp;every</td><td>' + frequency_text(alarm.update_every) + '</td></tr>'
2507 + + '<tr><td width="10%" style="text-align:right">execute</td><td><span style="font-family: monospace;">' + alarm.exec + '</span></td></tr>'
2508 + '<tr><td width="10%" style="text-align:right">source</td><td><span style="font-family: monospace;">' + alarm.source + '</span></td></tr>'
2509 + '</table></td></tr>';
2510