• 告警通知
  • 企业微信测试消息发送成功,但是自定义告警触发后未发送通知

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机,Centos7.9/ 4C/8G

Kubernetes版本信息
例如:v1.22.0。多节点。

容器运行时
例如,使用 docker,20.10.0

KubeSphere版本信息
例如:v3.4.0。在线安装。全套安装。

ks自动安装的告警模块,测试企业微信应用通知成功,配置自定义的告警规则触发后,没有发送通知。
am已经收到了消息,请教接下来如何排查?

level=info ts=2024-04-25T18:29:07.166483081Z caller=main.go:103 msg=“Starting notification manager…” addr=:19093 timeout=5s

I0425 18:29:08.218952 1 request.go:668] Waited for 1.040419403s due to client-side throttling, not priority and fairness, request: GET:https://10.233.0.1:443/apis/discovery.k8s.io/v1beta1?timeout=32s

level=info ts=2024-04-25T18:29:09.475664623Z caller=controller.go:264 msg=“notification manager changed” op=add

level=info ts=2024-04-25T18:29:09.576526153Z caller=controller.go:350 msg=“reload configs”

level=info ts=2024-04-25T18:29:09.576620378Z caller=controller.go:373 msg=“reload receivers”

level=info ts=2024-04-25T18:29:09.57674154Z caller=controller.go:458 msg=“Config changed” op=update name=default-wechat-config

level=info ts=2024-04-25T18:29:09.576816144Z caller=controller.go:537 msg=“Receiver changed” op=update name=global-wechat-receiver

level=warn ts=2024-04-25T18:40:09.78815805Z caller=wechat.go:121 msg=“WechatNotifier: ignore receiver because of empty config”

level=error ts=2024-04-25T18:40:09.788220662Z caller=dispatcher.go:128 msg=“Dispatcher: process alerts failed” seq=1

level=warn ts=2024-04-25T18:54:09.595808806Z caller=wechat.go:121 msg=“WechatNotifier: ignore receiver because of empty config”

level=error ts=2024-04-25T18:54:09.595845734Z caller=dispatcher.go:128 msg=“Dispatcher: process alerts failed” seq=2

level=info ts=2024-04-25T18:55:08.332490802Z caller=controller.go:537 msg=“Receiver changed” op=update name=global-wechat-receiver

level=warn ts=2024-04-25T18:59:09.59761562Z caller=wechat.go:121 msg=“WechatNotifier: ignore receiver because of empty config”

level=error ts=2024-04-25T18:59:09.597654402Z caller=dispatcher.go:128 msg=“Dispatcher: process alerts failed” seq=3

!<
我注意到它报 msg=“WechatNotifier: ignore receiver because of empty config”,找不到配置文件

NullFox 资源是有的,我尝试升级到2.5版本,结果启动报错,我就想回退到2.3版本,运行了下面4条命令,但是我看版本没退下来,这要怎么办呀?

你是切换到release 2.3分支然后apply的吗,你现在apply的是最新版吧

我apply的最新版,然后想退回去,又apply了2.3版本,但是版本退不回去了

kubectl get config ,kubectl get receiver查看一下有wechat对应的资源吗,2.5是可以的。你在页面测试没保存成功吧




我看这个版本不对应,然后notification-manager容器报错如下:

notification-manager-deployment的镜像在notification-manager这个资源里面指定的,你可以修改一下

notification-manager-deployment的镜像在notification-manager这个资源里面指定的,你可以修改一下

单集群还是多集群?多集群在host上改

我用kubectl edit修改了,但是这个问题怎么办呢?为什么它这个api的version会变

把notification-manager的chart用helm uninstall notification-manager -n kubesphere-monitoring-system命令卸载掉,然后kubectl edit cc ks-installer -n kubesphere-system编辑ks-installer, 删掉status中notification部分,等待ks-installer重新部署。

卸载了,但是我这里的status中没有notification部分