hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] <Incorrect number of recovery notifications>

Open rbsrcy opened this issue 1 year ago • 16 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

如果告警阀值配置为超过3次才警告,当服务正常是,恢复通知应该发出一次通知就行,结果发出了3次 image

image

Expected Behavior

恢复通知应该发出一次通知就行,结果发出了3次

Steps To Reproduce

Environment

HertzBeat version(s):1.4.2

Debug logs

Anything else?

rbsrcy avatar Dec 01 '23 05:12 rbsrcy

hi 你看看后面升级的latest镜像还会有这个问题不

tomsun28 avatar Dec 01 '23 07:12 tomsun28

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hi, will you see if the latest image that will be upgraded later still has this problem?

hertzbeat avatar Dec 01 '23 07:12 hertzbeat

I would like to help!

Calvin979 avatar Dec 02 '23 01:12 Calvin979

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I would like to help!

hertzbeat avatar Dec 02 '23 01:12 hertzbeat

I would like to help!

welcome.👍👍 has assign to you

tomsun28 avatar Dec 02 '23 01:12 tomsun28

Hi, 我尝试了四种场景都没能复现您所说的情况。 1、设置告警【触发次数】为3,且开启【恢复通知】,配置如下图所示: image 触发告警后,服务恢复正常只会收到一条【恢复通知】,如下图所示: image

2、设置告警【触发次数】为10,此时服务不可用,但在到达触发次数之前,将服务恢复成可用状态,没有收到【恢复通知】 3、针对同一种类型的警告设置多条规则,只会收到一条【恢复通知】 4、针对您截图的HTTP API监控,我用了以下的配置 image 结果在告警恢复的时候也只收到了一条【恢复通知】 image

Calvin979 avatar Dec 02 '23 03:12 Calvin979

可否提供更多的信息,比如docker镜像是否为最新的

Calvin979 avatar Dec 02 '23 03:12 Calvin979

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Can you provide more information, such as whether the docker image is the latest?

hertzbeat avatar Dec 02 '23 03:12 hertzbeat

latest镜像已经无此问题,出现问题的是v1.4.2 镜像,版本已经备注了是v1.4.2

rbsrcy avatar Dec 03 '23 00:12 rbsrcy

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The latest image has a shameless problem. The problem is with the v1.4.2 image. The version has been noted as v1.4.2.

hertzbeat avatar Dec 03 '23 00:12 hertzbeat

master分支经本地测试无此问题,docker上的latest镜像也反馈无此问题。请问需要打补丁到1.4.2吗?还是以master分支为准 @tomsun28

Calvin979 avatar Dec 03 '23 01:12 Calvin979

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The master branch has been tested locally without this problem, and the latest image on docker has also been reported to have no such problem. Do I need to patch to 1.4.2? Still based on the master branch @tomsun28

hertzbeat avatar Dec 03 '23 01:12 hertzbeat

master分支经本地测试无此问题,docker上的latest镜像也反馈无此问题。请问需要打补丁到1.4.2吗?还是以master分支为准 @tomsun28

我们就已master分支为准吧 他应该用的是老的1.4.2镜像 后面有更新了一波现在和latest相同了

tomsun28 avatar Dec 03 '23 01:12 tomsun28

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The master branch has been tested locally without this problem, and the latest image on docker has also been reported to have no such problem. Do I need to patch to 1.4.2? Still based on the master branch @tomsun28

Let's take the master branch as the standard. He should be using the old 1.4.2 surprise. There was a wave of updates later and now it is the same as the latest.

hertzbeat avatar Dec 03 '23 01:12 hertzbeat

master分支经本地测试无此问题,docker上的latest镜像也反馈无此问题。请问需要打补丁到1.4.2吗?还是以master分支为准 @tomsun28

我们就已master分支为准吧 他应该用的是老的1.4.2镜像 后面有更新了一波现在和latest相同了

好的,感谢解答

Calvin979 avatar Dec 03 '23 01:12 Calvin979

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The master branch has been tested locally without this problem, and the latest image on docker has also been reported to have no such problem. Do I need to patch to 1.4.2? Still refer to the master branch @tomsun28

Let’s refer to the master branch. It should be using the old 1.4.2 image. It has been updated later and is now the same as the latest one.

OK, thanks for the answer

hertzbeat avatar Dec 03 '23 01:12 hertzbeat