【问题标题】:Grafana variable with AND带有 AND 的 Grafana 变量
【发布时间】:2018-09-14 10:29:53
【问题描述】:

我在 Grafana 中创建了以下变量:

{"find": "terms", "field": "is_acr.keyword"}

它返回3,4,8

实际上我必须在该变量中添加一个 AND 子句,结果应该是这样的

{"find": "terms", "field": "is_acr.keyword" AND "ip_code.keyword": "AM"}

但 Grafana 会返回

Template variables could not be initialized: Unexpected token A in JSON at position 54

【问题讨论】:

  • 请说明您如何在 Grafana 中添加/定义该变量。错误也很清楚 -> ... AND .. 不是有效的 json。

标签: elasticsearch kibana grafana


【解决方案1】:

不完全是“AND”,但这应该可以满足您的需求

{"find": "terms", "field": "is_acr.keyword" , "query": "ip_code.keyword: AM"}

【讨论】:

    猜你喜欢
    • 2022-10-17
    • 1970-01-01
    • 2019-05-02
    • 2020-07-07
    • 2021-12-26
    • 2019-10-05
    • 2020-01-19
    • 1970-01-01
    • 2021-11-29
    相关资源
    最近更新 更多