Ant*_*des 1 elasticsearch grafana
我的 Grafana 仪表板显示了一些 Elastic 文档的统计信息。其中一些文档具有 属性important_details,有些则没有。我想创建一个“有重要详细信息:是/否/全部”过滤器。
我所做的是创建一个新has_important_details变量,输入“自定义”,并具有以下选项:
Yes : _exists_:important_details, No : NOT _exists_:important_details
Run Code Online (Sandbox Code Playgroud)
然后,我编辑面板并添加$has_important_details到查询字段。
这不起作用,原因似乎是_exists_:important_details它实际上发送了查询,而不是
_exists_\\:important_details
Run Code Online (Sandbox Code Playgroud)
同样地
NOT\\ _exists_\\:important_details
Run Code Online (Sandbox Code Playgroud)
反之亦然。