From 02f2554cc17e301850b016f5b76037033d2bb7d6 Mon Sep 17 00:00:00 2001 From: 710leo <710leo@gmail.com> Date: Tue, 22 Jun 2021 23:11:55 +0800 Subject: [PATCH] fix: nodata repeated recovery alerting --- src/modules/server/cron/transfer_stra.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/server/cron/transfer_stra.go b/src/modules/server/cron/transfer_stra.go index e2712275..36b01a62 100644 --- a/src/modules/server/cron/transfer_stra.go +++ b/src/modules/server/cron/transfer_stra.go @@ -36,6 +36,10 @@ func getStrategy() { continue } + if stra.Exprs[0].Func == "nodata" { + continue + } + metric := stra.Exprs[0].Metric for _, nid := range stra.Nids { key := str.ToMD5(nid, metric, "") //TODO get straMap key, 此处需要优化