From 3b66b6594c114d3b888798de9268cbb9a0a2729f Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 6 Jan 2021 11:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=BB=B6=E6=97=B6=EF=BD=9C=E6=9B=B4=E6=96=B0=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/alertmanager/alertmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/alertmanager/alertmanager.go b/service/alertmanager/alertmanager.go index 600446a..55788df 100644 --- a/service/alertmanager/alertmanager.go +++ b/service/alertmanager/alertmanager.go @@ -152,7 +152,7 @@ func checkStatus() { dao.Cache.Set(nID, NotificationHistory{ Duration: firstNotificationDelay, Until: time.Now().Add(firstNotificationDelay), - }, firstNotificationDelay) + }, firstNotificationDelay+time.Minute*10) } if flag { message := fmt.Sprintf("逮到咯,快去看看!服务器:%s(%s),报警规则:%s,%s", server.Name, server.Host.IP, alert.Name, desc)