在 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 for different pricing models. 相关信息请参阅以下文章。Refer to the following articles for related information.


本文进行了更新,以便使用新的 Azure PowerShell Az 模块。This article has been updated to use the new Azure PowerShell Az module. 你仍然可以使用 AzureRM 模块,至少在 2020 年 12 月之前,它将继续接收 bug 修补程序。You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. 若要详细了解新的 Az 模块和 AzureRM 兼容性,请参阅新 Azure Powershell Az 模块简介To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. 有关 Az 模块安装说明,请参阅安装 Azure PowerShellFor Az module installation instructions, see Install Azure PowerShell.

在 Azure 门户的 Monitor 中心,“使用情况和预估成本”页说明警报、指标和通知Azure Log AnalyticsAzure Application Insights 等核心监视功能的使用情况。 In the Monitor hub of the Azure portal, the Usage and estimated costs page explains 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. “钻取”显示的是 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:


下面是另一个类似的使用情况和成本摘要。Here’s another similar usage and cost summary. 此示例显示 2018 年 4 月新推出的基于消耗的定价模型中的订阅。This example shows a subscription in the new April 2018 consumption-based pricing model. 请注意,没有基于节点的计费。Note the lack of any node-based billing. Log Analytics 和 Application Insights 的数据引入与保留期现在按新的通用计量值报告。Data ingestion and retention for Log Analytics and Application Insights are now reported on a new common meter.

使用情况和预估成本门户屏幕截图 - 2018 年 4 月定价

新定价模型New pricing model

2018 年 4 月发布了新的监控定价模型In April 2018, a new monitoring pricing model was released. 此模型采用适合云的基于消耗的定价。This features cloud-friendly, consumption-based pricing. 客户只需为使用的资源付费,且无需基于节点做出承诺。You only pay for what you use, without node-based commitments. 我们已提供适用于警报、指标和通知的新定价模型的详细信息。Details of the new pricing model are available for alerting, metrics, notifications.

对于在 2018 年 4 月 2 日之后加入 Log Analytics 或 Application Insights 的客户,新定价模型是唯一选项。For customers onboarding to Log Analytics or Application Insights after April 2, 2018, the new pricing model is the only option. 对于已使用这些服务的客户,可以选择性地转移到新定价模型。For customers who already use these services, moving to the new pricing model is optional.

评估新定价模型的影响Assessing the impact of the new pricing model

新定价模型对每个客户造成的影响因客户的监视使用模式而异。The new pricing model will have different impacts on each customer based on their monitoring usage patterns. 在 2018 年 4 月 2 日之前使用过 Log Analytics 或 Application Insights 的客户可以通过 Azure Monitor 中的“使用情况和预估成本”页来评估改用新定价模型后的成本变化。 For customers who were using Log Analytics or Application Insights before April 2, 2018, the Usage and estimated cost page in Azure Monitor estimates any change in costs if they move to the new pricing model. 可以通过该页将订阅移到新模型中。It provides the way to move a subscription into the new model. 对于大多数客户来说,新定价模型是有利的。For most customers, the new pricing model will be advantageous. 对于数据使用量大的客户或所在区域成本较高的客户来说,情况可能不是这样。For customers with especially high data usage patterns or in higher-cost regions, this may not be the case.

若要查看在“使用情况和预估成本”页上选择的订阅的预估成本,请选择页面顶部附近的蓝色横幅。 To see an estimate of your costs for the subscriptions that you chose on the Usage and estimated costs page, select the blue banner near the top of the page. 最好是一次针对一个订阅执行此操作,因为只能这样采用新定价模型。It’s best to do this one subscription at a time, because that's the level at which the new pricing model can be adopted.


新页面显示的版本与前一页类似,只是横幅是绿色的:The new page shows a similar version of the prior page with a green banner:


该页还显示了对应于新定价模型的另一组计量。The page also shows a different set of meters that correspond to the new pricing model. 以下列表是一个示例:This list is an example:

  • 见解和分析\每个节点的超额Insight and Analytics\Overage per Node
  • 见解和分析\每个节点包含Insight and Analytics\Included per Node
  • Application Insights\基本超额数据Application Insights\Basic Overage Data
  • Application Insights\已包含的数据Application Insights\Included Data

新定价模型不提供基于节点的“包含数据”分配。The new pricing model doesn't have node-based included data allocations. 因此,这些数据引入计量合并为称作“共享服务\数据引入”的新通用数据引入计量。 Therefore, these data ingestion meters are combined into a new common data ingestion meter called Shared Services\Data Ingestion.

在成本较高的区域,引入到 Log Analytics 或 Application Insights 的数据还有一个变化。There's another change to data ingested into Log Analytics or Application Insights in regions with higher costs. 这些高成本区域的数据在显示时会使用新的区域计量。Data for these high-cost regions will be shown with the new regional meters. 一个例子是数据引入(中国中东部)An example is Data Ingestion (China East Central).


每订阅估计成本未纳入到 Operations Management Suite (OMS) 订阅的帐户级每节点权利中。The per subscription estimated costs do not factor into the account-level per node entitlements of the Operations Management Suite (OMS) subscription. 请咨询客户代表,以更深入地探讨这种情况下的新定价模型。Consult your account representative for a more in-depth discussion of the new pricing model in this case.

新定价模型和 Operations Management Suite 订阅权利New pricing model and Operations Management Suite subscription entitlements

购买了 Azure Operations Management Suite E1 和 E2 的客户有资格享受 Application Insights 的每节点数据引入权利。Customers who purchased Azure Operations Management Suite E1 and E2 are eligible for per-node data ingestion entitlements for Application Insights. 若要在给定的订阅中享受 Log Analytics 工作区或 Application Insights 资源的这些权利:To receive these entitlements for Log Analytics workspaces or Application Insights resources in a given subscription:

  • 该订阅的定价模型必须保持为 2018 年 4 月之前的定价模型。The subscription's pricing model must remain in the pre-April 2018 model.
  • Log Analytics 工作区应使用“按节点 (OMS)”定价层。Log Analytics workspaces should use the "Per-node (OMS)" pricing tier.
  • Application Insights 资源应使用“企业”定价计划。Application Insights resources should use the "Enterprise" pricing plan.

根据组织所购买套件的节点数,将某些订阅转移到新定价模型可能是有利的,但这需要仔细考虑。Depending on the number of nodes of the suite that your organization purchased, moving some subscriptions to the new pricing model could be advantageous, but this requires careful consideration. 通常情况下,建议保持为上面所述的 2018 年 4 月之前的定价模型即可。In general, it is advisable simply to stay in the pre-April 2018 model as described above.


如果组织已购买 Azure Operations Management Suite E1 和 E2,通常最好将订阅保持为 2018 年 4 月之前的定价模型。If your organization has purchased the Azure Operations Management Suite E1 and E2, it is usually best to keep your subscriptions in the pre-April 2018 pricing model.

转移到新定价模型时的变化Changes when you're moving to the new pricing model

新定价模型将 Log Analytics 和 Application Insights 定价选项简化为仅包含一个单层(或计划)。The new pricing model simplifies Log Analytics and Application Insights pricing options to only a single tier (or plan). 将订阅转移到新定价模型会:Moving a subscription into the new pricing model will:

  • 将每个 Log Analytics 的定价层更改为新的“按 GB”层(在 Azure 资源管理器中称为“按 GB 2018”)Change the pricing tier for each Log Analytics to a new Per-GB tier (called “pergb2018” in Azure Resource Manager)
  • 将“企业”计划中的任何 Application Insights 资源更改为“基本”计划。Any Application Insights resources in the Enterprise plan is changed to the Basic plan.

成本估算显示了这些变化造成的影响。The cost estimation shows the effects of these changes.


要注意的重要一点是,如果使用 Azure 资源管理器或 PowerShell 在订阅中部署 Log AnalyticsApplication Insights,则你已转移到新的定价模型。Here an important note if you use Azure Resource Manager or PowerShell to deploy Log Analytics or Application Insights in a subscription you have moved to the new pricing model. 如果为 Log Analytics 指定“按 GB 2018”以外的定价层/计划,或为 Application Insights 指定“基本”以外的定价层/计划,此部署不会由于指定了无效定价层/计划而失败,相反,此部署会成功,但它将仅使用有效的定价层/计划(这不适用于生成无效定价层消息的 Log Analytics 免费层) 。If you specify a pricing tier/plan other than the “pergb2018” for Log Analytics or “Basic” for Application Insights, rather than failing the deployment due to specifying an invalid pricing tier/plan, it will succeed but it will use only the valid pricing tier/plan (This does not apply to the Log Analytics Free tier where an invalid pricing tier message is generated).

转移到新定价模型Moving to the new pricing model

如果已决定对给定订阅采用新定价模型,请转到每个 Application Insights 资源,打开“使用情况和估算成本” 并确保其位于“基本”定价层中,然后转到每个 Log Analytics 工作区,打开其“定价层” 页并更改为“每 GB (2018)” 定价层。If you’ve decided to adopt the new pricing model for a given subscription, go to each Application Insights resource, open the Usage and estimated costs and be sure that it is in the Basic pricing tier, and go to each Log Analytics workspace, open each the Pricing tier page and change to the Per GB (2018) pricing tier.


对给定订阅中的所有 Application Insights 资源和 Log Analytics 工作区采用最新定价模型的要求现已取消,从而可实现更大的灵活性和更轻松的配置。The requirement that all Application Insights resources and Log Analytics workspaces within a given subscription adopt the newest pricing model has now been removed, allowing greater flexability and easier configuration.

自动转移到新定价模型Automate moving to the new pricing model

如上所述,不再要求同时将订阅中的所有监视资源移至新定价模型,因此 migratetonewpricingmodel 操作将不再具有任何效果。As noted above, the is no longer a requirement to move all monitoring resources in a subscription to the new pricing model at the same time, and hence the migratetonewpricingmodel action will no longer have any effect. 现在可以将 Application Insights 资源和 Log Analytics 工作区分别移动到最新的定价层。Now you can move Application Insights resources and Log Analytics workspaces separately into the newest pricing tiers.

根据文档记录,Application Insights 通过将 Set-AzureRmApplicationInsightsPricingPlan-PricingPlan "Basic" 配合使用自动执行此更改,Log Analytics 通过将 Set-AzureRmOperationalInsightsWorkspace-sku "PerGB2018" 配合使用自动执行此更改。Automating this change is documented for Application Insights using Set-AzureRmApplicationInsightsPricingPlan with -PricingPlan "Basic" and Log Analytics using Set-AzureRmOperationalInsightsWorkspace with -sku "PerGB2018".