我正在尝试使用电子邮件警报设置riemann(用于监控)。我在我的riemann.config文件中使用了以下部分,但在重新加载配置后,我得到了下面复制的错误。任何有关解决此问题的想法将不胜感激。
Riemann.config
(streams
(where (and (service #"^riemann netty execution-handler")
(state "critical"))
(email "user@somewhere.com")))
错误:
java.lang.RuntimeException: Unable to resolve symbol: email in this context, compiling:(/home/user/test/riemann-0.2.4/etc/riemann.config:40:9)
我忘了在配置中添加邮件程序部分 - 更新以便跟随。
尝试发送电子邮件是成功的 - 我现在收到一个不同的错误,我将作为单独的问题发布(riemann email exception with SMTP)。