Azure Monitor 视图设计器到工作簿的转换指南Azure Monitor view designer to workbooks transition guide

视图设计器是 Azure Monitor 的一项功能,它让你能够创建自定义视图,帮助你通过图表、列表和时间线将 Log Analytics 工作区中的数据可视化。View designer is a feature of Azure Monitor that allows you to create custom views to help you visualize data in your Log Analytics workspace, with charts, lists, and timelines. 它们被转换到工作簿以提供一块灵活的画布,用于分析数据以及在 Azure 门户中创建丰富的可视报表。They have been transitioned to Workbooks to provide a flexible canvas for data analysis and creation of rich visual reports within the Azure portal. 本文可帮助你将视图设计器转换为工作簿。This article helps you make the transition from View designer to Workbooks.

工作簿概述Workbooks overview

工作簿可将文本、 日志查询、指标和参数合并到丰富的交互式报告中。Workbooks combine text, log queries, metrics, and parameters into rich interactive reports. 对 Azure 资源拥有相同访问权限的团队成员也可以编辑工作簿。Team members with the same access to Azure resources are also able to edit workbooks.

在如下所述的场景中,工作簿非常有用:Workbooks are helpful for scenarios such as:

  • 当你事先不知道所需的指标时,浏览虚拟机的使用情况:CPU 利用率、磁盘空间、内存、网络依赖关系,等等。与其他使用情况分析工具不同,工作簿可以结合多个类型的可视化效果和分析,非常适合这种自由探索。Exploring the usage of your virtual machine when you don't know the metrics of interest in advance: CPU utilization, disk space, memory, network dependencies, etc. Unlike other usage analytics tools, workbooks let you combine multiple kinds of visualizations and analyses, making them great for this kind of free-form exploration.
  • 通过显示关键计数器的指标和其他日志事件,向团队解释最近预配的 VM 的性能如何。Explaining to your team how a recently provisioned VM is performing, by showing metrics for key counters and other log events.
  • 与团队的其他成员分享调整 VM 试验规模的结果。Sharing the results of a resizing experiment of your VM with other members of your team. 可以用文本解释试验的目标,然后展示用于评估试验的每个使用情况指标和 Analytics 查询,以及说明每个指标是否高于或低于目标的标注。You can explain the goals for the experiment with text, then show each usage metric and analytics queries used to evaluate the experiment, along with clear call-outs for whether each metric was above or below target.
  • 结合数据、文本说明和后续步骤讨论,报告故障对 VM 使用的影响,从而防止未来发生故障。Reporting the impact of an outage on the usage of your VM, combining data, text explanation, and a discussion of next steps to prevent outages in the future.

为何要将视图设计器仪表板转换为工作簿?Why convert view designer dashboards to workbooks?

视图设计器提供了生成基于查询的不同视图和可视化效果的功能。View designer offers the ability to generate different query-based views and visualizations. 但是,许多高级自定义仍然受限,如设置网格和磁贴布局的格式,或者选择替换图形来表示数据。However, many high-level customizations remain limited, such as formatting the grids and tile layouts or selecting alternative graphics to represent your data. 视图设计器限制为总共九个不同的磁贴来表示数据。View designer is restricted to a total of nine distinct tiles to represent your data.

工作簿是一个平台,用于释放数据的全部潜能。Workbooks is a platform that unlocks the full potential of your data. 工作簿不仅保留所有功能,还通过文本、指标、参数等支持其他功能。workbooks not only retain all the capabilities, but also supports additional functionality through text, metrics, parameters, and much more. 例如,工作簿允许用户合并密集的网格,并添加搜索栏来轻松筛选和分析数据。For example, workbooks allow users to consolidate dense grids and add search bars to easily filter and analyze the data.

使用工作簿而不使用视图设计器可带来的好处Advantages of using Workbooks over View Designer

  • 支持日志和指标。Supports both logs and metrics.
  • 允许用于个人访问控制的个人视图和共享工作簿视图。Allows both personal views for individual access control and shared workbooks views.
  • 具有选项卡、大小调整功能和缩放控件的自定义布局选项。Custom layout options with tabs, sizing, and scaling controls.
  • 支持跨多个 Log Analytics 工作区、Application Insights 应用程序和订阅进行查询。Support for querying across multiple Log Analytics workspaces, Application Insights applications, and subscriptions.
  • 允许可动态更新关联的图表和可视化效果的自定义参数。Enables custom parameters that dynamically update associated charts and visualizations.
  • 来自公共 GitHub 的模板库支持。Template gallery support from public GitHub.

尽管本指南只是提供了用于直接重新创建多个常用视图设计器视图的简单步骤,但工作簿还允许用户自由创建和设计任何自定义的可视化效果和指标。While this guide offers simple steps to directly recreate several of the commonly used view designer views, workbooks allow users to have the freedom to create and design any of their own custom visualizations and metrics. 以下屏幕截图取自工作区用法模板,显示了工作簿可创建的内容示例:The following screenshot is from the Workspace usage template and shows an example of what workbooks are capable of creating:


如何开始使用工作簿How to start using workbooks

可以在边侧导航栏中紧靠在“视图设计器”位置下面,选择“工作簿”项打开工作簿。Open workbooks from the Workbooks are enabled in Log Analytics workspaces as an item in the side navigation bar, directly under the view designer location.


选择后,将显示一个库,其中列出了为工作区保存的所有工作簿和模板。Once selected, a gallery will be displayed listing out all the saved workbooks and templates for your workspace.


若要启动新工作簿,可以在“快速启动”下选择“空”模板,或选择顶部导航栏中的“新建”图标。 To start a new workbook, you may select the Empty template under Quick start, or the New icon in the top navigation bar. 若要查看模板或返回保存的工作簿,请从库中选择该项,或在搜索栏中搜索名称。To view templates or return to saved workbooks, select the item from the gallery or search for the name in the search bar.

若要保存工作簿,需要使用特定的标题、订阅、资源组和位置保存报表。To save a workbook, you will need to save the report with a specific title, subscription, resource group, and location. 工作簿将自动填充到与 LA 工作区相同的设置并使用相同的订阅和资源组,但用户可以更改这些报表设置。The workbook will autofill to the same settings as the LA workspace, with the same subscription, resource group, however, users may change these report settings. 默认情况下,工作簿将保存到“我的报表”,只能由单个用户访问。Workbooks are by default saved to My Reports, accessible only by the individual user. 还可以将其直接保存到共享报表,或者在以后共享。They can also be saved directly to shared reports or shared later.


后续步骤Next steps