Fixes req/repl alert triggered as slow purge

This commit is contained in:
Simone Mainardi 2020-07-09 08:18:35 +02:00
parent a07c093e1e
commit 583bcd2d0c

View file

@ -35,7 +35,7 @@ local function request_reply_ratio(params)
local requests = alerts_api.host_delta_val(to_check_key .. "_requests", params.granularity, values[1], skip_first)
local replies = alerts_api.host_delta_val(to_check_key .. "_replies", params.granularity, values[2], skip_first)
local ratio = (replies * 100) / (requests+1)
local req_repl_type = alert_consts.alert_types.alert_slow_purge.create(
local req_repl_type = alert_consts.alert_types.alert_request_reply_ratio.create(
alert_consts.alert_severities.warning,
params.granularity,
key,