简体   繁体   English

使用AND的Grafana变量

[英]Grafana variable with AND

I've created the following variable in Grafana: 我在Grafana中创建了以下变量:

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

It returns 3,4,8 返回3,4,8

Actually I have to add an AND clause to that variable, the result is expected to be something like 实际上,我必须在该变量中添加一个AND子句,预期结果是

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

but Grafana returns 但是格拉法娜回来了

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

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM