简体   繁体   English

Azure 仪表板中的筛选器

[英]Filters in Azure dashboards

In an Azure dashboard, I can set a filter, but I don't see any way to use the filter value in the actual queries.在 Azure 仪表板中,我可以设置筛选器,但我看不到在实际查询中使用筛选器值的任何方法。 I'm assuming that it might filter the final results automatically, but not all panels work the same way so that's not always effective.我假设它可能会自动过滤最终结果,但并非所有面板都以相同的方式工作,所以这并不总是有效的。 I don't seem to be able to reference it with the ${} syntax.我似乎无法使用 ${} 语法来引用它。 Is there some other way or is this not actually supported?有没有其他方法或者这实际上不支持?

在 Azure 仪表板上添加筛选器

In recent dashboards the Add filter option is not visible on Shared dashboard , see this to Open a shared dashboard .在最近的仪表板中, Add filter选项在Shared dashboard不可见,请参阅此打开共享仪表板

Shared dashboard screenshot:共享仪表板屏幕截图: 在此处输入图像描述

We can create an Azure dashboard programmatically by fetching the JSON representation of the dashboard.我们可以通过获取仪表板的 JSON 表示以编程方式创建 Azure 仪表板。 Export => Download . Export => Download

In Azure monitor view we can do the filter by value of that property.Azure monitor view中,我们可以按该属性的值进行筛选。 If we need any effect on a filter, we need to modify the queries like here .如果我们需要对过滤器产生任何影响,我们需要像这里一样修改查询。

The basic syntax for it,它的基本语法,

where ${filter_name}

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

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