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

监视解决方案利用 Azure 中的服务来提供特定应用程序或服务的更多操作见解。Monitoring solutions leverage services in Azure to provide additional insight into the operation of a particular application or service. 本文简要概述了 Azure 中的监视解决方案,并详细介绍如何了使用和安装这些解决方案。This article provides a brief overview of monitoring solutions in Azure and details on using and installing them.

Note

监视解决方案以前称为管理解决方案。Monitoring solutions were previously referred to as management solutions.

监视解决方案通常收集日志数据并提供查询和视图,用于分析收集的数据。Monitoring solutions typically collect log data and provide queries and views to analyze collected data. 这些解决方案还可以利用 Azure 自动化等其他服务来执行与应用程序或服务相关的操作。They may also leverage other services such as Azure Automation to perform actions related to the application or service.

可以在 Azure Monitor 中针对你使用的任何应用程序和服务添加监视解决方案。You can add monitoring solutions to Azure Monitor for any applications and services that you use. 这些解决方案是免费提供的,但收集数据可能会产生使用费。They are typically available at no cost but collect data that could invoke usage charges. 除了由 Microsoft 提供的解决方案以外,合作伙伴和客户还可以创建管理解决方案,以便在各自环境中使用或通过社区提供给客户使用。In addition to solutions provided by Microsoft, partners and customers can create management solutions to be used in their own environment or made available to customers through the community.

Note

本文最近已更新,从使用术语“Log Analytics”改为使用术语“Azure Monitor 日志”。This article was recently updated to use the term Azure Monitor logs instead of Log Analytics. 日志数据仍然存储在 Log Analytics 工作区中,并仍然由同一 Log Analytics 服务收集并分析。Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service. 我们正在更新术语,以便更好地反映 Azure Monitor 中日志的角色。We are updating the terminology to better reflect the role of logs in Azure Monitor. 有关详细信息,请参阅 Azure Monitor 术语更改See Azure Monitor terminology changes for details.

使用监视解决方案Use monitoring solutions

打开 Azure Monitor 的“概述”页来为该工作区中安装的每个解决方案显示一个磁贴。Open the Overview page in Azure Monitor to display a tile for each solution installed in the workspace.

  1. 登录到 Azure 门户。Log in to the Azure portal.
  2. 打开“所有服务”并找到“监视器”。Open All services and locate Monitor.
  3. 在“见解”菜单下选择“更多”。Under the Insights menu, select More.
  4. 使用屏幕顶部的下拉框更改工作区或用于磁贴的时间范围。Use the dropdown boxes at the top of the screen to change the workspace or the time range used for the tiles.
  5. 单击解决方案的磁贴会打开其视图,其中包含该解决方案收集的数据的更详细分析。Click on the tile for a solution to open its view which includes more detailed analysis its collected data.

概述

监视解决方案可以包含多种类型的 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 门户。Log in to the Azure portal.
  2. 打开“所有服务”并找到“解决方案”。Open All services and locate Solutions.
  3. 将列出所有工作区中安装的解决方案。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.
  4. 使用屏幕顶部的下拉框可按订阅或资源组进行筛选。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 市场中提供了 Azure 和合作伙伴提供的监视解决方案。Monitoring solutions from Azure 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. 在“管理解决方案”的右侧,单击“更多”。 To the right of Management Solutions, click More.
  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 resource group and region. 中国东部区域的工作区以及中国东部 2 区的自动化帐户除外。The exception is a workspace in China East region and Automation account in China East 2.

如何指定 Log Analytics 工作区和自动化帐户取决于解决方案的安装方法。How you specify the Log Analytics workspace and Automation account depends on the installation method for your solution.

  • 通过 Azure 市场安装解决方案时,系统会提示提供一个工作区和自动化帐户。When you install a solution through the Azure Marketplace, you are prompted for a workspace and Automation account. 如果工作区与自动化帐户之间尚未建立链接,则系统会创建这种链接。The link between them is created if they aren't already linked.
  • 对于 Azure 市场外的解决方案,必须在安装解决方案之前链接 Log Analytics 工作区和自动化帐户。For solutions outside of the Azure Marketplace, you must link the Log Analytics workspace and Automation account before installing the solution. 为此,可以在 Azure 市场中选择任何解决方案,并选择 Log Analytics 工作区和自动化帐户。You can do this by selecting any solution in the Azure Marketplace and selecting the Log Analytics workspace and Automation account. 无需实际安装解决方案,因为只要选择了 Log Analytics 工作区和自动化帐户,就会创建链接。You don't have to actually install the solution because the link is created as soon as the Log Analytics workspace and Automation account are selected. 创建链接后,可以对任何解决方案使用该 Log Analytics 工作区和自动化帐户。Once the link is created, then you can use that Log Analytics workspace and Automation account for any solution.

可以使用以下过程验证 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.
  3. 如果“工作区”设置已启用,则此帐户将链接到 Log Analytics 工作区。If the Workspace setting is enabled, then this account is linked to a Log Analytics workspace. 可单击“工作区”查看工作区的详细信息。You can click on Workspace to view the details of the workspace.

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

若要删除已安装的解决方案,请在已安装的解决方案列表中找到它。To remove an installed solution, 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