From: Costa Tsaousis (ktsaou) Date: Sat, 10 Sep 2016 10:26:05 +0000 (+0300) Subject: lowered the warning and critical levels of the prediction for out of space and increa... X-Git-Tag: v1.4.0~66^2 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=1b797018a1b68e56b354544bacb0db3c9a7bf1f6;p=netdata.git lowered the warning and critical levels of the prediction for out of space and increased the evaluation timeframe to 1 hour --- diff --git a/conf.d/health.d/disks.conf b/conf.d/health.d/disks.conf index 2e31f069..ddd48d7c 100644 --- a/conf.d/health.d/disks.conf +++ b/conf.d/health.d/disks.conf @@ -21,7 +21,7 @@ template: disk_space_usage # calculate the rate the disk fills # use as base, the available space change -# during the last 30 minutes +# during the last hour # this is just a calculation - it has no alarm # we will use it in the next template to find @@ -29,25 +29,25 @@ template: disk_space_usage template: disk_fill_rate on: disk.space - lookup: min -5m at -30m unaligned of avail - calc: ($this - $avail) / (($now - $after) / 60) + lookup: min -10m at -50m unaligned of avail + calc: ($this - $avail) / (($now - $after) / 3600) every: 1m - units: GB/min - info: average rate the disk fills up (positive), or frees up (negative) space, for the last 30 minutes + units: GB/hour + info: average rate the disk fills up (positive), or frees up (negative) space, for the last hour # calculate the hours remaining # if the disk continues to fill # in this rate -template: out_of_disk_space +template: out_of_disk_space_time on: disk.space - calc: $avail / ($disk_fill_rate * 60) + calc: $avail / $disk_fill_rate every: 10s - warn: $this > 0 and $this < 48 - crit: $this > 0 and $this < 24 + warn: $this > 0 and $this < 8 + crit: $this > 0 and $this < 2 units: hours - info: estimated time the disk will run out of space, if the system continues to add data with the rate of the last 30 minutes + info: estimated time the disk will run out of space, if the system continues to add data with the rate of the last hour to: sysadmin diff --git a/conf.d/health.d/memcached.conf b/conf.d/health.d/memcached.conf index bd14b70c..573e0339 100644 --- a/conf.d/health.d/memcached.conf +++ b/conf.d/health.d/memcached.conf @@ -27,23 +27,23 @@ template: memcached_cache_memory_usage # find the rate memcached cache is filling -template: memcached_cache_fill_rate +template: cache_fill_rate on: memcached.cache - lookup: min -5m at -30m unaligned of available - calc: ($this - $available) / (($now - $after) / 60) + lookup: min -10m at -50m unaligned of available + calc: ($this - $available) / (($now - $after) / 3600) every: 1m - units: KB/min - info: average rate the cache fills up (positive), or frees up (negative) space, for the last 30 minutes + units: KB/hour + info: average rate the cache fills up (positive), or frees up (negative) space, for the last hour # find the hours remaining until memcached cache is full -template: memcached_out_of_cache_space +template: out_of_cache_space_time on: memcached.cache - calc: $available / ($memcached_cache_fill_rate * 60) + calc: $available / $cache_fill_rate every: 10s - warn: $this > 0 and $this < 48 - crit: $this > 0 and $this < 24 + warn: $this > 0 and $this < 8 + crit: $this > 0 and $this < 2 units: hours - info: estimated time the cache will run out of space, if the system continues to add data with the rate of the last 30 minutes + info: estimated time the cache will run out of space, if the system continues to add data with the rate of the last hour to: dba diff --git a/conf.d/health_alarm_notify.conf b/conf.d/health_alarm_notify.conf index e724d299..0e3d23f9 100644 --- a/conf.d/health_alarm_notify.conf +++ b/conf.d/health_alarm_notify.conf @@ -1,9 +1,16 @@ -# Configuration for alarms recipients - -# netdata alarms have been categorized to allow different roles to receive -# alarms related to their work. +# Configuration for alarm notifications +# +# this configuration is used by: alarm-notify.sh +# changes take effect immendiately (the next alarm will use them). +# +# alarm-notify.sh can send: +# - e-mails, +# - push notifications to your mobile phone, +# - messages to your slack team +# +# the recipient given in netdata alarms defines a role, so that different +# people can be notified for each role. # -# This file defines the addresses for each role. # This file is a BASH script itself. ############################################################################### @@ -48,7 +55,7 @@ SEND_PUSHOVER="YES" # Without it, netdata cannot send pushover notifications. PUSHOVER_APP_TOKEN="" -# if a role recipient is not configured, a notification will be send to +# if a role's recipients are not configured, a notification will be send to # this pushover user token: DEFAULT_RECIPIENT_PUSHOVER="" @@ -67,7 +74,7 @@ SEND_SLACK="YES" # Without it, netdata cannot send slack notifications. SLACK_WEBHOOK_URL="" -# if a role recipient is not configured, a notification will be send to +# if a role's recipients are not configured, a notification will be send to # this slack channel: DEFAULT_RECIPIENT_SLACK="" diff --git a/web/index.html b/web/index.html index 214d4b19..df54b3e0 100644 --- a/web/index.html +++ b/web/index.html @@ -2593,7 +2593,7 @@ function alarmsUpdateModal() { var active = '

Raised Alarms

'; var all = '

All Running Alarms

'; var log = '

Alarm Log

'; - var footer = '
netdata badges refresh automatically. Their color indicates the state of the alarm:  red  is critical,  orange  is warning,  bright green  is ok,  light grey  is undefined (i.e. no data or no status),  black  is not initialized. You can copy and paste their URLs to embed them in any web page.'; + var footer = '
netdata badges refresh automatically. Their color indicates the state of the alarm:  red  is critical,  orange  is warning,  bright green  is ok,  light grey  is undefined (i.e. no data or no status),  black  is not initialized. You can copy and paste their URLs to embed them in any web page.
netdata can send notifications for these alarms. Check this configuration file for more information.'; NETDATA.alarms.get('all', function(data) { options.alarm_families = new Array();
WhenChartAlarmStatus