opendistro警报历史记录存储在.opendistro-alerting-alert-history-<date>
索引中
是否可以从过去的“已完成”警报中获取警报查询数据/执行结果?
我找不到数据
提前致谢
最佳答案
是的,所有COMPLETED警报都保存在中。正如您提到的opendistro-alerting-alert-history-<date>
索引reference。
尝试添加索引模式,并确保包括系统索引:.opendistro-alerting-alert-history-*
您始终可以使用以下查询在ElasticSearch中查看它们:http://my-awseome-es:9200/_cat/indices?expand_wildcards=open,hidden
由于索引以。(period)开头,因此它被隐藏,就像UNIX隐藏文件/文件夹一样。
我制作了一个grafana仪表板以可视化警报数据:12875
请看看,它可以为Kibana提供引用。
关于elasticsearch - 获取过去的警报执行数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58916915/