如何将Application Insights Analytics查询从Dev导出到Freeze环境

问题描述 投票:0回答:1

Application Insights分析查询是在Dev环境中设计的。现在想要设置升级。为App Insights创建了2个资源,一个用于开发,另一个用于登台。有什么办法可以直接将Dev查询导出到分析中的分段。

在Query Explorer中尝试使用共享查询。

如何为App Insights仪表板设置开发,登台和生产环境?

azure-application-insights
1个回答
0
投票

如果我误解你,请纠正我。

在您的情况下,您可以使用app()表达式跨多个应用程序查询,然后生成图表 - > pin到仪表板。

如下所示,我有一个名为mvc111和ivanAppInsights的2个应用程序洞察资源。在mvc111中,我想从ivanAppInsights查询。

在名为mvc111的应用程序中 - >分析:

app("ivanAppInsights").requests
| where timestamp > ago(20d)
| render barchart

然后选择pin按钮将图表添加到仪表板:

enter image description here

最后,导航到仪表板(如果仪表板中没有数据,请在仪表板中选择一个时间范围):

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.