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

每次告警都会发alertmanager配置的webhook_configs默认tpl模版,既匹配tpl=default,也同时匹配告警路由规则的模版,导致每次告警/恢复都发两条 #424

Open
riverwoo opened this issue Aug 8, 2024 · 4 comments

Comments

@riverwoo
Copy link

riverwoo commented Aug 8, 2024

每次告警都会发alertmanager配置的webhook_configs默认tpl模版,既匹配tpl=default,也同时匹配告警路由规则的模版,导致每次告警/恢复都发两条,请问如何解决只需要发匹配告警路由规则的模版
image

image

image

image

@yeazzzz
Copy link

yeazzzz commented Aug 16, 2024

我也遇到了相同的问题,请问解决了吗

@riverwoo
Copy link
Author

riverwoo commented Sep 2, 2024

我也遇到了相同的问题,请问解决了吗

还没有解决,应该是没办法解决了

@bigdimple
Copy link
Contributor

webhook_configs里面可以不配置机器人地址,直接置为空。默认收到告警后从路由策略的机器人里面发

@riverwoo
Copy link
Author

riverwoo commented Sep 18, 2024

webhook_configs里面可以不配置机器人地址,直接置为空。默认收到告警后从路由策略的机器人里面发

@bigdimple 这样吗?还是会收到,http://172.17.17.202:9095/prometheusalert?type=wx&tpl=default&wxurl=

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

3 participants