Azure Monitor 中的监视解决方案Monitoring solutions in Azure Monitor

Azure Monitor 中的监视解决方案提供对特定 Azure 应用程序或服务的操作分析。Monitoring solutions in Azure Monitor provide analysis of the operation of a particular Azure application or service. 本文简要概述了 Azure 中的监视解决方案,并详细介绍如何了使用和安装这些解决方案。This article provides a brief overview of monitoring solutions in Azure and details on using and installing them. 可以在 Azure Monitor 中针对你使用的任何应用程序和服务添加监视解决方案。You can add monitoring solutions to Azure Monitor for any applications and services that you use. 这些解决方案通常是免费的,但收集的数据可能会产生使用费。They're typically available at no cost but collect data that could invoke usage charges.

使用监视解决方案Use monitoring solutions

Azure Monitor 的解决方案“概述”页针对 Log Analytics 工作区中安装的每个解决方案都会显示一个磁贴。The solutions Overview page in Azure Monitor displays a tile for each solution installed in a Log Analytics workspace. 若要打开此页,请在 Azure 门户中转到“Azure Monitor”。To open this page, go to Azure Monitor in the Azure portal. 在“见解”菜单下,选择“更多”以打开“见解中心”,然后单击“Log Analytics 工作区”。Under the Insights menu, select More to open the Insights Hub, and then click on Log Analytics workspaces.

见解中心Insights Hub

使用屏幕顶部的下拉框更改工作区或用于磁贴的时间范围。Use the dropdown boxes at the top of the screen to change the workspace or the time range used for the tiles. 单击解决方案的磁贴,以打开它的视图,其中包含它收集的数据的更详细分析。Click on the tile for a solution to open its view that includes more detailed analysis its collected data.

屏幕截图显示 Azure 门户菜单,其中已选择“解决方案”,并且“解决方案”窗格显示了多个解决方案。Screenshot shows the Azure portal menu with Solutions selected and solutions displayed in the Solutions pane.

监视解决方案可以包含多种类型的 Azure 资源。可以像查看其他任何资源一样查看解决方案包含的任何资源。Monitoring solutions can contain multiple types of Azure resources, and you can view any resources included with a solution just like any other resource. 例如,解决方案中包含的任何日志查询都列在查询资源管理器中的“解决方案查询”下,可在使用日志查询执行临时分析时使用这些查询。For example, any log queries included in the solution are listed under Solution Queries in Query explorer You can use those queries when performing ad hoc analysis with log queries.

列出已安装的监视解决方案List installed monitoring solutions

使用以下过程列出订阅中安装的监视解决方案。Use the following procedure to list the monitoring solutions installed in your subscription.

  1. 转到 Azure 门户Go to the Azure portal. 搜索并选择“解决方案”。Search for and select Solutions.
  2. 将列出所有工作区中安装的解决方案。Solutions installed in all your workspaces are listed. 解决方案名称的后面是在其中安装该解决方案的工作区的名称。The name of the solution is followed by the name of the workspace it's installed in.
  3. 使用屏幕顶部的下拉框可按订阅或资源组进行筛选。Use the dropdown boxes at the top of the screen to filter by subscription or resource group.

列出所有解决方案

单击某个解决方案的名称打开其摘要页。Click on the name of a solution to open its summary page. 此页显示解决方案中包含的所有视图,并提供解决方案本身及其工作区的不同选项。This page displays any views included in the solution and provides different options for the solution itself and its workspace. 使用上述过程之一查看解决方案的摘要页以列出解决方案,然后单击解决方案的名称。View the summary page for a solution by using one of the procedures above to list solutions and then click on the name of the solution.

解决方案属性

安装监视解决方案Install a monitoring solution

Azure 市场中提供了 Microsoft 和合作伙伴提供的监视解决方案。Monitoring solutions from Microsoft and partners are available from the Azure Marketplace. 可以搜索可用的解决方案,并使用以下过程进行安装。You can search available solutions and install them using the following procedure. 安装解决方案时,必须选择要在其中安装该解决方案的 Log Analytics 工作区,以及要将解决方案数据收集到的位置。When you install a solution, you must select a Log Analytics workspace where the solution will be installed and where its data will be collected.

  1. 订阅的解决方案列表中,单击“添加”。From the list of solutions for your subscription, click Add.
  2. 浏览或搜索解决方案。Browse or search for a solution. 也可以通过此搜索链接来浏览解决方案。You can also browse solutions from this search link.
  3. 找到所需的监视解决方案并阅读其说明。Locate the monitoring solution you want and read through its description.
  4. 单击“创建”以启动安装进程。Click Create to start the installation process.
  5. 当安装过程开始时,系统会提示你指定 Log Analytics 工作区,并为解决方案提供任何所需的配置。When the installation process starts, you're prompted to specify the Log Analytics workspace and provide any required configuration for the solution.

安装解决方案

从社区安装解决方案Install a solution from the community

社区成员可以将管理解决方案提交到 Azure 快速入门模板。Members of the community can submit management solutions to Azure Quickstart Templates. 可以直接安装这些解决方案,或者下载模板,以便今后安装。You can install these solutions directly or download them templates for later installation.

  1. 请遵循 Log Analytics 工作区和自动化帐户中所述的过程来链接工作区和帐户。Follow the process described in Log Analytics workspace and Automation account to link a workspace and account.
  2. 转到 Azure 快速入门模板Go to Azure Quickstart Templates.
  3. 搜索感兴趣的解决方案。Search for a solution that you're interested in.
  4. 从结果中选择解决方案以查看其详细信息。Select the solution from the results to view its details.
  5. 单击“部署到 Azure”按钮。Click the Deploy to Azure button.
  6. 除了解决方案中任何参数的值,系统还会提示提供资源组和位置等信息。You're prompted to provide information such as the resource group and location in addition to values for any parameters in the solution.
  7. 单击“购买”可安装解决方案。Click Purchase to install the solution.

Log Analytics 工作区和自动化帐户Log Analytics workspace and Automation account

所有监视解决方案都需要使用一个 Log Analytics 工作区来存储解决方案收集的数据,以及托管其日志搜索和视图。All monitoring solutions require a Log Analytics workspace to store data collected by the solution and to host its log searches and views. 某些解决方案还需要使用一个自动化帐户来包含 Runbook 和相关资源。Some solutions also require an Automation account to contain runbooks and related resources. 工作区和帐户必须满足以下要求。The workspace and account must meet the following requirements.

  • 解决方案的每项安装只能使用一个 Log Analytics 工作区和一个自动化帐户。Each installation of a solution can only use one Log Analytics workspace and one Automation account. 可将解决方案单独安装到多个工作区。You can install the solution separately into multiple workspaces.
  • 如果解决方案需要自动化帐户,则必须将 Log Analytics 工作区和自动化帐户相互链接。If a solution requires an Automation account, then the Log Analytics workspace and Automation account must be linked to one another. 一个 Log Analytics 工作区只能链接到一个自动化帐户,而一个自动化帐户也只能链接到一个 Log Analytics 工作区。A Log Analytics workspace may only be linked to one Automation account, and an Automation account may only be linked to one Log Analytics workspace.
  • 若要进行链接,Log Analytics 工作区和自动化帐户必须位于同一订阅中,但可以位于部署到同一区域的不同资源组中。To be linked, the Log Analytics workspace and Automation account must be in the same subscription, but can be in different resource groups deployed to the same region.

通过 Azure 市场安装解决方案时,系统会提示提供一个工作区和自动化帐户。When you install a solution through Azure Marketplace, you're prompted for a workspace and Automation account. 如果工作区与自动化帐户之间尚未建立链接,则系统会创建这种链接。The link between them is created if they aren't already linked.

可以使用以下过程验证 Log Analytics 工作区和自动化帐户之间的链接。You can verify the link between a Log Analytics workspace and an Automation account using the following procedure.

  1. 在 Azure 门户中选择自动化帐户。Select the Automation account in the Azure portal.
  2. 滚动到菜单的“相关资源”部分,然后选择“链接的工作区”。Scroll to the Related Resources section of the menu and select Linked workspace.
  3. 如果工作区已链接到自动化帐户,此页面会列出它链接到的工作区。If the Workspace is linked to an Automation account, then this page lists the workspace it is linked to. 如果你选择所列出工作区的名称,则会被重定向到此工作区的概述页面。If you select the name of the workspace listed, you are redirected to the overview page for that workspace.

删除监视解决方案Remove a monitoring solution

若要通过门户删除已安装的解决方案,请在已安装解决方案的列表中找到它。To remove an installed solution using the portal, locate it in the list of installed solutions. 单击解决方案的名称打开其摘要页,然后单击“删除”。Click on the name of the solution to open its summary page and then click on Delete.

后续步骤Next steps