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're 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.

安装解决方案

从社区安装解决方案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 the 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, 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