在 Azure Monitor 中监视使用情况和预估成本Monitoring usage and estimated costs in Azure Monitor

备注

本文介绍如何查看多个 Azure 监视功能的使用情况和估算成本。This article, describes how to view usage and estimated costs across multiple Azure monitoring features. Azure Monitor 特定组件的相关文章包括:Related articles for specific components of Azure Monitor include:

Azure Monitor 定价模型Azure Monitor pricing model

我们已提供适用于警报、指标和通知Log AnalyticsApplication Insights 的定价详细信息。Pricing details are available for alerting, metrics, notifications, Log Analytics and Application Insights.

容量预留定价模型允许每天购买 100 GB 的初始预留容量。The capacity reservation pricing enables you to buy a reservation starting at 100 GB/day. 超过预留级别的任何用量将按即用即付费率计费。Any usage above the reservation level will be billed at the Pay-As-You-Go rate. 详细了解容量预留定价。Learn more about Capacity Reservation pricing.

某些客户有权访问传统 Log Analytics 定价层传统 Enterprise Application Insights 定价层Some customers will have access to legacy Log Analytics pricing tiers and the legacy Enterprise Application Insights pricing tier.

了解 Azure Monitor 成本Understanding your Azure Monitor costs

估算环境的管理成本Estimating the costs to manage your environment

如果你尚未使用 Azure Monitor 日志,可以使用 Azure Monitor 定价计算器来估算 Azure Monitor 的使用成本。If you're not yet using Azure Monitor Logs, you can use the Azure Monitor pricing calculator to estimate the cost of using Azure Monitor. 首先,从“选择要包含在估算中的产品”下拉列表中选择“Azure Monitor”,然后从“类型”列中选择一个选项:Start by selecting "Azure Monitor" from the Select a product to include it in your estimate dropdown, and select one of the options from the Type column:

  • 指标查询和警报Metrics queries and Alerts
  • Log AnalyticsLog Analytics
  • Application InsightsApplication Insights

在上述每种情况下,定价计算器都可帮助你根据预期用量估算可能的成本。In each of these, the pricing calculator will help you estimate your likely costs based on your expected utilization.

例如,对于 Log Analytics,可以输入 VM 数目,以及要从每个 VM 收集的数据量 (GB)。For example, with Log Analytics you can enter the number of VMs and the GB of data you expect to collect from each VM. 通常每月会从一个典型的 Azure VM 引入 1 GB 到 3 GB 数据。Typically 1 GB to 3 GB of data month is ingested from a typical Azure VM. 如果已经评估了 Azure Monitor 日志,则可以使用自己环境中的数据统计信息。If you're already evaluating Azure Monitor Logs already, you can use your data statistics from your own environment. 请参阅下文来了解如何确定受监视 VM 数工作区引入的数据量See below for how to determine the number of monitored VMs and the volume of data your workspace is ingesting.

类似于 Application Insights,如果启用“基于应用程序活动估算数据量”功能,则可以提供有关应用程序的输入(如果收集客户端遥测数据,请提供每月请求数和页面视图数),然后,计算器会告知类似应用程序收集的中间值和第 90 百分位的数据量。Similarly for Application Insights, if you enable the "Estimate data volume based on application activity" functionality, you can provide inputs about your application (requests per month and page views per month, in case you will collect client-side telemetry), and then the calculator will tell you the median and 90th percentile amount of data collected by similar applications. 这些应用程序超过了 Application Insights 的配置范围(例如,有些应用程序采用默认采样,而有些应用程序根本不使用采样,等等),因此,你仍可以通过采样控制,将引入的数据量降到远远低于中位水平。These applications span the range of Application Insights configuration (e.g some have default sampling, some have no sampling etc.), so you still have the control to reduce the volume of data you ingest far below the median level using sampling. 但这只是了解其他类似客户看到的情况的一个起点。But this is a starting point to understand what other, similar customers are seeing. 详细了解如何估算 Application Insights 的成本。Learn more about estimating costs for Application Insights.

也可以在“Monitor”中心的“使用情况和估算成本”页中查看 Azure Monitor 的使用情况。 Another option for viewing your Azure Monitor usage is the Usage and estimated costs page in the Monitor hub. 此页会显示警报、指标和通知Azure Log AnalyticsAzure Application Insights 等核心监视功能的使用情况。This shows the usage of core monitoring features such as alerting, metrics, notifications, Azure Log Analytics, and Azure Application Insights. 对于使用 2018 年 4 月之前提供的定价计划的客户,这还包括通过见解和分析套餐购买的 Log Analytics 使用情况功能。For customers on the pricing plans available before April 2018, this also includes Log Analytics usage purchased through the Insights and Analytics offer.

在此页上,用户可以查看过去 31 天的资源使用情况(按订阅聚合)。On this page, users can view their resource usage for the past 31 days, aggregated per subscription. Drill-ins 显示 31 天的使用趋势。Drill-ins show usage trends over the 31-day period. 需要聚合大量的数据才能进行此估算,因此请耐心等待页面加载。A lot of data needs to come together for this estimate, so please be patient as the page loads.

以下示例显示正在监视使用情况,以及最终的预估成本:This example shows monitoring usage and an estimate of the resulting costs:

使用情况和预估成本门户屏幕截图

选择“每月使用情况”列中的链接会打开一个图表,其中显示过去 31 天的使用趋势:Select the link in the monthly usage column to open a chart that shows usage trends over the last 31-day period:

“每个节点包含”条形图屏幕截图