Commit 9448f0a6 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Fix silencing of successful and redirect alerts in web_log

parent a4a58e7b
# Change: make successful rate silent
template: 1m_successful
on: web_log.response_statuses
families: *
lookup: sum -1m unaligned of successful_requests
calc: $this * 100 / $1m_requests
units: %
every: 10s
warn: ($1m_requests > 120) ? ($this < (($status >= $WARNING ) ? ( 95 ) : ( 85 )) ) : ( 0 )
crit: ($1m_requests > 120) ? ($this < (($status == $CRITICAL) ? ( 85 ) : ( 75 )) ) : ( 0 )
delay: up 2m down 15m multiplier 1.5 max 1h
info: the ratio of successful HTTP responses (1xx, 2xx, 304, 401) over the last minute
to: silent
template: web_log_1m_unmatched
on: web_log.excluded_requests
families: *
......@@ -23,3 +9,34 @@ families: *
delay: up 1m down 5m multiplier 1.5 max 1h
info: the ratio of unmatched lines, over the last minute
to: silent
template: 1m_successful
on: web_log.response_statuses
class: Workload
type: Web Server
component: Web log
families: *
lookup: sum -1m unaligned of successful_requests
calc: $this * 100 / $1m_requests
units: %
every: 10s
warn: ($1m_requests > 120) ? ($this < (($status >= $WARNING ) ? ( 95 ) : ( 85 )) ) : ( 0 )
crit: ($1m_requests > 120) ? ($this < (($status == $CRITICAL) ? ( 85 ) : ( 75 )) ) : ( 0 )
delay: up 2m down 15m multiplier 1.5 max 1h
info: ratio of successful HTTP requests over the last minute (1xx, 2xx, 304, 401)
to: webmaster
template: 1m_redirects
on: web_log.response_statuses
class: Workload
type: Web Server
component: Web log
families: *
lookup: sum -1m unaligned of redirects
calc: $this * 100 / $1m_requests
units: %
every: 10s
warn: ($1m_requests > 120) ? ($this > (($status >= $WARNING ) ? ( 1 ) : ( 20 )) ) : ( 0 )
delay: up 2m down 15m multiplier 1.5 max 1h
info: ratio of redirection HTTP requests over the last minute (3xx except 304)
to: webmaster
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment