prometheus-webhook-dingtalk-1.4.0无法找到targets
使用--config.file="config.yml"配置启动之后发告警信息,dingtalk日志中一直报target=webhook1 msg="target not found",ui/config中检测targets也是空。
使用--ding.profile=webhook1=url配置启动正常。
最后发现被官方的config.example.yml文件坑了一把,timeout和templates去掉注释后前面会有一个空格,targets前面没有空格,导致targets无法识别
调整后正常