您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

什么是用于 VM 的 Azure Monitor?What is Azure Monitor for VMs?

用于 VM 的 Azure Monitor 监视虚拟机和虚拟机规模集的性能和运行状况,包括其正在运行的进程和其他资源的依赖关系。Azure Monitor for VMs monitors the performance and health of your virtual machines and virtual machine scale sets, including their running processes and dependencies on other resources. 它可以通过识别性能瓶颈和网络问题来帮助提供重要应用程序的可预测性能和可用性,还可以帮助你了解问题是否与其他依赖关系相关。It can help deliver predictable performance and availability of vital applications by identifying performance bottlenecks and network issues and can also help you understand whether an issue is related to other dependencies.

用于 VM 的 Azure Monitor 支持 Windows 和 Linux 操作系统,请执行以下操作:Azure Monitor for VMs supports Windows and Linux operating systems on the following:

  • Azure 虚拟机Azure virtual machines
  • Azure 虚拟机规模集Azure virtual machine scale sets
  • 与 Azure Arc 连接的混合虚拟机Hybrid virtual machines connected with Azure Arc
  • 本地虚拟机On-premises virtual machines
  • 托管在其他云环境中的虚拟机Virtual machines hosted in another cloud environment

用于 VM 的 Azure Monitor 将其数据存储在 Azure Monitor 日志中,这使得它能够提供强大的聚合和筛选功能,并在一段时间内分析数据趋势。Azure Monitor for VMs stores its data in Azure Monitor Logs, which allows it to deliver powerful aggregation and filtering and to analyze data trends over time. 可以直接从虚拟机的单个 VM 查看此数据,也可以使用 Azure Monitor 提供多个 Vm 的聚合视图。You can view this data in a single VM from the virtual machine directly, or you can use Azure Monitor to deliver an aggregated view of multiple VMs.

Azure 门户中的虚拟机见解透视图

定价Pricing

用于 VM 的 Azure Monitor 不会直接收费,但你需要为 Log Analytics 工作区中的活动付费。There's no direct cost for Azure Monitor for VMs, but you're charged for its activity in the Log Analytics workspace. 根据在 Azure Monitor 定价页上发布的定价,将针对以下内容对用于 VM 的 Azure Monitor 进行计费:Based on the pricing that's published on the Azure Monitor pricing page, Azure Monitor for VMs is billed for:

  • 从代理引入数据,并将其存储在工作区中。Data ingested from agents and stored in the workspace.
  • 基于日志和运行状况数据的警报规则。Alert rules based on log and health data.
  • 从警报规则发送的通知。Notifications sent from alert rules.

日志大小因性能计数器的字符串长度而异,并且可能会随分配给 VM 的逻辑磁盘和网络适配器的数量而增大。The log size varies by the string lengths of performance counters, and it can increase with the number of logical disks and network adapters allocated to the VM. 如果已在使用服务映射,则将看到的唯一更改是发送到 Azure Monitor 数据类型的其他性能数据 InsightsMetricsIf you're already using Service Map, the only change you'll see is the additional performance data that's sent to the Azure Monitor InsightsMetrics data type.

配置用于 VM 的 Azure MonitorConfiguring Azure Monitor for VMs

配置用于 VM 的 Azure Monitor 的步骤如下所示。The steps to configure Azure Monitor for VMs are as follows. 请访问每个链接,获取有关每个步骤的详细指导:Follow each link for detailed guidance on each step:

后续步骤Next steps