We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
假设只有邮件短信两种告警方式,想要自己决定,所有告警级别全部发邮件,或者1,2发邮件,3,4,5发短信。 如果可以通过Url传入参数来决定,会更加灵活。 我看到如下位置的代码,部分是支持的根据url来解析告警通知方式的
PrometheusAlert/controllers/prometheus.go
Line 126 in 92ce2eb
建议短信和电话也切换成这种方式,如果您认同我的看法请告知我,我将会协助您一起修改
The text was updated successfully, but these errors were encountered:
自定义模板的接口可以支持通过URL作为参数指定告警通知的方式。结合alertmanger的路由可以做到更精确的告警路由,老的/prometheus/alert 和 /prometheus/router 接口主要是早期为了方便部分用户而设计的,后面还是比较推荐使用自定义模板接口,相对老的接口会更加灵活一些。
/prometheus/alert
/prometheus/router
Sorry, something went wrong.
No branches or pull requests
假设只有邮件短信两种告警方式,想要自己决定,所有告警级别全部发邮件,或者1,2发邮件,3,4,5发短信。
如果可以通过Url传入参数来决定,会更加灵活。
我看到如下位置的代码,部分是支持的根据url来解析告警通知方式的
PrometheusAlert/controllers/prometheus.go
Line 126 in 92ce2eb
建议短信和电话也切换成这种方式,如果您认同我的看法请告知我,我将会协助您一起修改
The text was updated successfully, but these errors were encountered: