Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

告警规则不勾选告警接收组时,在订阅规则中配置告警接收组发送通知失败 #2264

Closed
sunyum opened this issue Nov 5, 2024 · 5 comments

Comments

@sunyum
Copy link

sunyum commented Nov 5, 2024

Question and Steps to reproduce

  1. 创建一个告警规则不勾选告警接收组
  2. 创建一个订阅规则,勾选告警接收组并指定指定钉钉通知
  3. 此时告警触发后错误如下 Client.Timeout exceeded while awaiting headers
    image

Relevant logs and configurations

Version

7.6.0

@UlricQin
Copy link
Member

UlricQin commented Nov 5, 2024

大概率是你的网络问题,可以手工 curl 钉钉的 url 做测试

@sunyum
Copy link
Author

sunyum commented Nov 5, 2024

不是网络的问题。

  1. 告警规则配置接收组后,告警规则和订阅规则的通知就都会发送
  2. 告警规则接收组配置一个错误的钉钉hook,则告警规则通知失败,订阅规则通知发送成功

@UlricQin
Copy link
Member

那个报错很明显,就是超时了,跟是否在告警规则中勾选业务组无关。

@sunyum
Copy link
Author

sunyum commented Nov 12, 2024

那个报错很明显,就是超时了,跟是否在告警规则中勾选业务组无关。

那为什么告警规则勾选告警组后,就能通知成功呢? 这个超时的错误只会出现在告警规则不勾选告警组时

@UlricQin
Copy link
Member

UlricQin commented Nov 12, 2024

无论如何我都没有测试出超时,client.Timeout 99% 都是网络问题,超时跟产品逻辑无关 @sunyum

image

如果你的告警规则里,所有通知媒介都没有勾选,在订阅规则里要勾选通知媒介:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants