]> arthur.barton.de Git - netdata.git/commitdiff
1m_redirects should only use 301,303,307,308
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Feb 2017 13:58:30 +0000 (15:58 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Feb 2017 13:58:30 +0000 (15:58 +0200)
conf.d/health.d/web_log.conf

index ad9e0161035375d64701da69bb8226d5fafd483e..b6d2d537f9a811e16d9aae59937bb1bacfeba450 100644 (file)
@@ -48,16 +48,16 @@ families: *
       to: webmaster
 
 template: 1m_redirects
-      on: web_log.response_codes
+      on: web_log.detailed_response_codes
 families: *
-  lookup: sum -1m unaligned of 3xx
+  lookup: sum -1m unaligned of 301,303,307,308
     calc: $this * 100 / ( $1m_2xx + $this )
    units: %
    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 ratio of HTTP redirects (3xx) vs the successful requests, \
+    info: the ratio of HTTP redirects (301, 303, 307, 308) vs the successful requests, \
           over the last minute
       to: webmaster