@cryptotaxi247 / netdata-1 / commits / 074458236

proper 1m_successful alarm for web_log

Costa Tsaousis (ktsaou) committed Feb 11, 2017 at 15:50 UTC 074458236069d48fdcae9742ed73117fcb9ea2eb
1 file changed +12 -3
conf.d/health.d/web_log.conf
+12 -3
@@ -32,10 +32,19 @@ families: *
32 calc: ($this == 0)?(1):($this)
33 units: requests
34 every: 10s
35 - warn: ($1m_requests > 30) ? ($this > ($status >= $WARNING ) ? ( 1 ) : ( 2 )) : ( 0 )
36 - crit: ($1m_requests > 30) ? ($this > ($status == $CRITICAL) ? ( 2 ) : ( 5 )) : ( 0 )
37 - delay: down 15m multiplier 1.5 max 1h
35 info: the sum of successful HTTP requests over the last minute
36 +
37 +template: 1m_successful
38 + on: web_log.response_codes
39 +families: *
40 + calc: $1m_2xx * 100 / $1m_requests
41 + units: %
42 + every: 10s
43 + warn: ($1m_requests > 30) ? ($this < (($status >= $WARNING ) ? ( 98 ) : ( 95 )) ) : ( 0 )
44 + crit: ($1m_requests > 30) ? ($this < (($status == $CRITICAL) ? ( 95 ) : ( 90 )) ) : ( 0 )
45 + delay: down 15m multiplier 1.5 max 1h
46 + info: the ratio of HTTP redirects (3xx) vs the successful requests, \
47 + over the last minute
48 to: webmaster
49
50 template: 1m_redirects