简体   繁体   English

Grafana Alias通过模板弹性搜索

[英]Grafana Alias By Template Elastic Search

I'm trying to figure out how to display multiple values of a template variable in a graph. 我试图弄清楚如何在图形中显示模板变量的多个值。

The values for my template variable $bidtype are A to J. 我的模板变量$ bidtype的值是A到J。

Right now I solved the problem by duplicating the queries and changing the value and alias in each, but ideally I wanted something like this: 现在,我通过重复查询并更改每个查询的值和别名来解决该问题,但理想情况下,我想要这样的东西:

campaignId:AAA AND customVariable10:$bidtype alias by $bidtype campaignId:AAA和customVariable10:$ bidtype别名(按$ bidtype)

Here is the screenshot of what I have now, any suggestions please? 这是我现在所拥有的屏幕截图,有什么建议吗?

我的Grafana dasahboard

I found how to separate into multiple lines with just one query, the trick is to use Group By 我发现了如何仅用一个查询将其分成多行,诀窍是使用分组依据

在此处输入图片说明

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

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