问题标签 [riemann]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
clojure - clojure.lang.LazySeq 不能转换为 clojure.lang.IFn
我是 Riemann 和 Clojure 的新手。我要做的就是在某些服务的 TTL 过期时向三个电子邮件组发送电子邮件通知。我创建了某种配置文件,其中存储了电子邮件列表:
我的 riemann 配置如下所示:
代码看起来不错(对我来说),但是当此服务过期时,我收到以下错误:
有人可以帮我吗?谢谢。
clojure - 如何在 riemann.config 中使用 clj-http
我使用 riemann,现在我写我的riemann.config
.
我想使用clj-http
将所有事件从 riemann 流发布到我的网络服务器。但我不知道如何clj-http
从 riemann.jar 导入。
我编码(:use clj-http.client)
或(:require [clj-http.client :as client])
输入riemann.config
但出现错误:
谁能帮助我?
clojure - 黎曼中特定时间间隔的事件计数
我必须每 30 秒检查一次事件中出现的计数。如果计数大于 5 意味着,我需要触发一封电子邮件。
我正在使用下面的代码,但电子邮件没有被触发。
我哪里错了?
clojure - Comparing event and adding new field in Riemann
I am facing one scenario. Let assume I have 3 events A, B and C which I am passing to Riemann.
Event A have following fields
:ExamNo 3890
:ExamResult Pass
:Rank 8
Event B have following fields
:ExamNo 3890
:ExamResult Pass
:Rank 5
Event C have following fields
:ExamNo 3890
:ExamResult Fail
:Rank 0
I need to compare the events based on ExamNo and whenver there is a change in ExamResult I need to add a new fields to event {:Eligible, :Grade}. I wrote the code to compare the events but the new field was not getting added to the event.
Since I am newbie to Riemann . I couldn't figure out the issue.
node.js - 不同版本的节点依赖
我有一个问题,即整个应用程序在 node12 中运行。但是其中一个依赖项在此版本中存在一些问题,需要 <=node11。有没有办法单独为依赖项指定不同的节点版本。(这里提到的模块是https://github.com/perezd/riemann-nodejs-client/issues)
clojure - 在黎曼中找到一个字符串
我想在 riemann 中使用 clojure 查找句子中的字符串。我已经使用重新匹配编写了代码,但是在执行它时遇到了一些错误。
这是我得到的错误
clojure - 计算给定时间窗口内的黎曼事件
在特定服务的 riemann 配置中,我试图将其分配给所有事件 metric=1,在 5 秒内对它们求和并将结果发送到 influxdb。
我尝试了以下方法:
它并没有真正起作用,存储在 influx 中的事件与此规则不匹配。
clojure - 黎曼中的自定义电子邮件主题和正文
我在 riemann 中使用电子邮件警报。我已经硬编码了:subject
':body' 的值。我在这方面面临一些问题。我粘贴了我的黎曼代码和下面的错误。我不知道如何解决这个问题。
我收到以下错误
当我评论:subject
and时:body
。我没有收到错误。
提前致谢
clojure - 黎曼:触发改变状态的警报
我是黎曼和clojure的新手。我正在尝试根据更改的状态配置警报。但是状态似乎从未被更新/索引。所以当我到达改变状态的块时,状态是零。我可以在 splitp 块中添加警报,但这似乎是多余的。也许我们会希望在关键和警告之间有不同类型的通知,但现在,我希望看到这项工作(如果可能的话)。
谢谢你的帮助!
黎曼 v0.2.9,collectd v5.5.0,操作系统 CentOS 6.5