使用 Azure Monitor(预览版)监视资源组Monitor resource groups with Azure Monitor (preview)

现代应用程序通常很复杂且分布广泛,许多独立部件协同工作来提供服务。Modern applications are often complex and highly distributed with many discrete parts working together to deliver a service. Azure Monitor 考虑到这种复杂性,为资源组提供监视见解。Recognizing this complexity, Azure Monitor provides monitoring insights for resource groups. 因此,可以轻松分类和诊断各资源出现的任何问题,同时提供有关资源组和应用程序的运行状况和性能的整体上下文——。This makes it easy to triage and diagnose any problems your individual resources encounter, while offering context as to the health and performance of the resource group—and your application—as a whole.

资源组的访问见解Access insights for resource groups

  1. 在左侧的导航栏中选择“资源组”。Select Resource groups from the left-side navigation bar.
  2. 选择其中一个要浏览的资源组。Pick one of your resource groups that you want to explore. (如果拥有大量资源组,则按订阅筛选有时会很有用。)(If you have a large number of resource groups filtering by subscription can sometimes be helpful.)
  3. 若要访问资源组的见解,单击任意资源组的左侧菜单中的“见解”。To access insights for a resource group, click Insights in the left-side menu of any resource group.

资源组见解概述页的屏幕截图

具有活动警报和运行状况问题的资源Resources with active alerts and health issues

概述页显示已触发且仍处于活动状态的警报数以及每个资源的当前 Azure 资源运行状况。The overview page shows how many alerts have been fired and are still active, along with the current Azure Resource Health of each resource. 这些信息有助于快速发现出现问题的任何资源。Together, this information can help you quickly spot any resources that are experiencing issues. 警报可帮助检测代码中的问题以及配置基础结构的方式。Alerts help you detect issues in your code and how you've configured your infrastructure. Azure 资源运行状况显示 Azure 平台本身的问题,这些问题并非特定于单个应用程序。Azure Resource Health surfaces issue with the Azure platform itself, that aren't specific to your individual applications.

Azure 资源运行状况窗格的屏幕截图

Azure 资源运行状况Azure Resource Health

若要显示 Azure 资源运行状况,选中表格上方的“显示 Azure 资源运行状况”。To display Azure Resource Health, check the Show Azure Resource Health box above the table. 默认情况下隐藏此列,以快速加载页面。This column is hidden by default to help the page load quickly.

添加了资源运行状况图的屏幕截图

默认情况下,按照应用层和资源类型对资源进行分组。By default, the resources are grouped by app layer and resource type. 应用层是资源类型的简单分类,仅存在于资源组见解概述页的上下文中。App layer is a simple categorization of resource types, that only exists within the context of the resource group insights overview page. 存在与应用程序代码、计算基础结构、网络、存储 + 数据库相关的资源类型。There are resource types related to application code, compute infrastructure, networking, storage + databases. 管理工具具有自己的应用层,每个其他资源都归类为属于“其他”应用层。Management tools get their own app layers, and every other resource is categorized as belonging to the Other app layer. 此分组可以帮助快速查看应用程序的哪些子系统运行正常,哪些子系统运行不正常。This grouping can help you see at-a-glance what subsystems of your application are healthy and unhealthy.

疑难解答Troubleshooting

启用对警报的访问Enabling access to alerts

若要在适用于资源组的 Azure Monitor 中查看警报,需要由此订阅中具有“所有者”或“参与者”角色的某人为订阅中的任何资源组打开适用于资源组的 Azure Monitor。To see alerts in Azure Monitor for Resource Groups, someone with an Owner or Contributor role for this subscription needs to open Azure Monitor for Resource Groups for any resource group in the subscription. 这会使得具有读取访问权限的任何人都能够在适用于资源组的 Azure Monitor 中查看针对该订阅中所有资源组的警报。This will enable anyone with read access to see alerts in Azure Monitor for Resource Groups for all of the resource groups in the subscription. 如果你拥有“所有者”或“参与者”角色,请在几分钟后刷新此页面。If you have an Owner or Contributor role, refresh this page in a few minutes.

适用于资源组的 Azure Monitor 依赖于 Azure Monitor 警报管理系统来检索警报状态。Azure Monitor for Resource Groups relies on the Azure Monitor Alerts Management system to retrieve alert status. 默认情况下没有为每个资源组和订阅配置“警报管理”,它只能由具有“所有者”或“参与者”角色的某人来启用。Alerts Management isn't configured for every resource group and subscription by default, and it can only be enabled by someone with an Owner or Contributor role. 可以通过以下任一方式启用它:It can be enabled either by:

  • 为订阅中的任何资源组打开适用于资源组的 Azure Monitor。Opening Azure Monitor for Resource Groups for any resource group in the subscription.
  • 或者,转到订阅,单击“资源提供程序”,然后单击“注册 Alerts.Management”。Or by going to the subscription, clicking Resource Providers, then clicking Register for Alerts.Management.

后续步骤Next steps