gpt4 book ai didi

elasticsearch - 对于特定规则,ElastAlert每小时而不是每分钟发出警报

转载 作者:行者123 更新时间:2023-12-02 22:57:09 24 4
gpt4 key购买 nike

我有ElastAlert服务,该服务每分钟发送一次警报。我现在已经配置了flatline规则,以便在过去一个小时内没有新数据时提醒我。

正如预期的那样,rule运行了一个小时以确保没有任何事件进入。但是随后,它开始每分钟发送一次警报(尊重配置)。如何更改此设置,并告诉ElastAlert在此特定规则上每小时而不是每分钟提醒我一次?

最佳答案

您可以将realert config选项设置为60分钟吗? (默认为1)

Realert

realert realert: This option allows you to ignore repeating alerts for a period of time. If the rule uses a query_key, this option will be applied on a per key basis. All matches for a given rule, or for matches with the same query_key, will be ignored for the given time. All matches with a missing query_key will be grouped together using a value of _missing. This is applied to the time the alert is sent, not to the time of the event. It defaults to one minute, which means that if ElastAlert is run over a large time period which triggers many matches, only the first alert will be sent by default. If you want every alert, set realert to 0 minutes. (Optional, time, default 1 minute)

关于elasticsearch - 对于特定规则,ElastAlert每小时而不是每分钟发出警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49378491/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com