使用 Power BI 连接到 Application InsightsConnect to Application Insights with Power BI

使用 Power BI 可通过 Application Insights 遥测创建功能强大的自定义仪表板。Use Power BI to create powerful custom dashboards from Application Insights telemetry. 可采用新方式来设想应用遥测。Envision your app telemetry in new ways. 将来自多个应用程序或组件服务的指标合并到一个仪表板上。Combine metrics from multiple apps or component services onto one dashboard. 适用于 Application Insights 的 Power BI 内容包的此第一个版本包括用于常见使用情况相关指标(如活动用户、页面视图、会话、浏览器和操作系统版本以及地图中用户的地理分布)的小组件。This first release of the Power BI content pack for Application Insights includes widgets for common usage-related metrics such as active users, page view, sessions, browser and OS version, and geographic distribution of users in a map.

连接到适用于 Power BI 的 Application Insights 内容包Connect to the Application Insights content pack for Power BI.

备注

若要进行连接,需要在 Azure 预览门户中访问应用程序的 Application Insights 概述边栏选项卡。Access to the Application Insights overview blade for your application in the Azure Preview Portal is required to connect. 以下是有关要求的详细信息。More details on requirements below.

如何连接How to connect

  1. 选择左侧导航窗格底部的获取数据Select Get Data at the bottom of the left navigation pane.

    “获取数据”按钮

  2. 服务框中,选择获取In the Services box, select Get.

    “获取服务”按钮

  3. 选择 Application Insights > 获取Select Application Insights > Get.

    Application Insights 内容包

  4. 提供要连接到的应用程序的详细信息,包括Application Insights 资源名称资源组订阅 IDProvide the details of the application you want to connect to, including Application Insights Resource Name, Resource Group, and Subscription ID. 有关详细信息,请参阅下面的查找 Application Insights 参数See Finding your Application Insights parameters below for more details.

    Application Insights 连接对话框

  5. 选择登录,然后按照屏幕进行连接。Select Sign In and follow the screens to connect.

    Application Insights 连接登录

  6. 导入过程会自动开始。The import process begins automatically. 完成时,一个通知会显示,并且一个新仪表板、报表和数据集会出现在导航窗格中并以星号进行标记。When complete, a notification is shown and a new dashboard, report, and dataset appear in the Navigation Pane marked with an asterisk. 选择仪表板查看已导入的数据。Select the dashboard to view your imported data.

    Application Insights 仪表板

下一步?What now?

包含的内容What's included

Application Insights 内容包包含以下表和指标:The Application Insights content pack includes the following tables and metrics:

- <span data-ttu-id="96616-134">ApplicationDetails</span><span class="sxs-lookup"><span data-stu-id="96616-134">ApplicationDetails</span></span>  
- <span data-ttu-id="96616-135">UniqueUsersLast7Days</span><span class="sxs-lookup"><span data-stu-id="96616-135">UniqueUsersLast7Days</span></span>   
- <span data-ttu-id="96616-136">UniqueUsersLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-136">UniqueUsersLast30Days</span></span>   
- <span data-ttu-id="96616-137">UniqueUsersDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-137">UniqueUsersDailyLast30Days</span></span>  
- <span data-ttu-id="96616-138">UniqueUsersByCountryLast7Days</span><span class="sxs-lookup"><span data-stu-id="96616-138">UniqueUsersByCountryLast7Days</span></span>  
- <span data-ttu-id="96616-139">UniqueUsersByCountryLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-139">UniqueUsersByCountryLast30Days</span></span>   
- <span data-ttu-id="96616-140">PageViewsDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-140">PageViewsDailyLast30Days</span></span>   
- <span data-ttu-id="96616-141">SessionsLast7Days</span><span class="sxs-lookup"><span data-stu-id="96616-141">SessionsLast7Days</span></span>   
- <span data-ttu-id="96616-142">SessionsLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-142">SessionsLast30Days</span></span>  
- <span data-ttu-id="96616-143">PageViewsByBrowserVersionDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-143">PageViewsByBrowserVersionDailyLast30Days</span></span>   
- <span data-ttu-id="96616-144">UniqueUsersByOperatingSystemLast7Days</span><span class="sxs-lookup"><span data-stu-id="96616-144">UniqueUsersByOperatingSystemLast7Days</span></span>   
- <span data-ttu-id="96616-145">UniqueUsersByOperatingSystemLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-145">UniqueUsersByOperatingSystemLast30Days</span></span>    
- <span data-ttu-id="96616-146">SessionsDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-146">SessionsDailyLast30Days</span></span>   
- <span data-ttu-id="96616-147">SessionsByCountryLast7Days</span><span class="sxs-lookup"><span data-stu-id="96616-147">SessionsByCountryLast7Days</span></span>   
- <span data-ttu-id="96616-148">SessionsByCountryLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-148">SessionsByCountryLast30Days</span></span>   
- <span data-ttu-id="96616-149">PageViewsByCountryDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="96616-149">PageViewsByCountryDailyLast30Days</span></span>   

查找参数Finding parameters

资源名称、资源组和订阅 ID 都可以在 Azure 门户中找到。Your Resource Name, Resource Group and Subscription ID can all be found in the Azure Portal. 选择名称会打开详细视图,你可以使用“必备”下拉菜单来查找所需的所有值。Selecting the Name will open a detailed view and you can use the Essentials drop-down to find all the values you need.

Application Insights 参数

复制这些内容并粘贴到 Power BI 中的字段中:Copy and paste these into the fields into Power BI:

Application Insights 参数

后续步骤Next steps

Power BI 入门Get started in Power BI

在 Power BI 中获取数据Get data in Power BI