我可能不理解riemann/clojure中的一些关键概念。我试图解析字段:使用"aaa:1234.bbbb.cccc.ddddd"格式的事件服务,并使用"with“函数向事件添加新的字段pid。任何人都可以向我解释为什么riemann.config中的代码会抛出异常:
...user=> (riemann.bin/reload!)message "java.lang.RuntimeException: Unable to resolve symbol: service in
- instrumentation service caught at riemann.core$stream_BANG_$fn__11140.invoke(core.clj:19) at riemann.core$instrumentation_service$measure__11149.invoke(core.clj:57)
at riemann</em
我正在为一个将事件发送到Riemann的应用程序编写单元测试。Riemann启动非常慢,所以我决定启动它一次,并在所有测试中重用该实例。我要做的是配置Riemann,这样在接收到一个特殊事件时,它就会清除它的索引。有一个API调用似乎适合这个任务:。但我对Clojure并不十分熟悉,我也不知道如何使用它。下面是我配置的一部分: index (riemann.index/clear (:index @core