diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-11 15:50:20 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-11 15:50:20 +0200 |
commit | 074458236069d48fdcae9742ed73117fcb9ea2eb (patch) | |
tree | 3a980f17b0fe8f073940db746aa53b6c4f05966b /conf.d/health.d | |
parent | ce599880d6d8f74e95fb682a2d7a0d17439f15b8 (diff) |
proper 1m_successful alarm for web_log
Diffstat (limited to 'conf.d/health.d')
-rw-r--r-- | conf.d/health.d/web_log.conf | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/conf.d/health.d/web_log.conf b/conf.d/health.d/web_log.conf index fa88dc8cf5..ad9e016103 100644 --- a/conf.d/health.d/web_log.conf +++ b/conf.d/health.d/web_log.conf @@ -32,10 +32,19 @@ families: * calc: ($this == 0)?(1):($this) units: requests every: 10s - warn: ($1m_requests > 30) ? ($this > ($status >= $WARNING ) ? ( 1 ) : ( 2 )) : ( 0 ) - crit: ($1m_requests > 30) ? ($this > ($status == $CRITICAL) ? ( 2 ) : ( 5 )) : ( 0 ) - delay: down 15m multiplier 1.5 max 1h info: the sum of successful HTTP requests over the last minute + +template: 1m_successful + on: web_log.response_codes +families: * + calc: $1m_2xx * 100 / $1m_requests + units: % + every: 10s + warn: ($1m_requests > 30) ? ($this < (($status >= $WARNING ) ? ( 98 ) : ( 95 )) ) : ( 0 ) + crit: ($1m_requests > 30) ? ($this < (($status == $CRITICAL) ? ( 95 ) : ( 90 )) ) : ( 0 ) + delay: down 15m multiplier 1.5 max 1h + info: the ratio of HTTP redirects (3xx) vs the successful requests, \ + over the last minute to: webmaster template: 1m_redirects |