Azure Monitor 中的统一警报和监视替换经典警报和监视Unified alerting & monitoring in Azure Monitor replaces classic alerting & monitoring

Azure Monitor 是统一的监视堆栈,支持对不同的 Azure 资源使用“一个指标”和“一个警报”。Azure Monitor is a unified monitoring stack that supports ‘One Metric’ and ‘One Alerts’ across Azure resources. 有关详细信息,请参阅此博客文章See more information in this blog post. 新的 Azure 监视和警报平台更快速、更智能并且可以扩展 - 与不断发展的云计算齐头并进,并与 Microsoft 智能云理念保持一致。The new Azure monitoring and alerting platforms has been built to be faster, smarter, and extensible - keeping pace with the growing expanse of cloud computing and in-line with Microsoft Intelligent Cloud philosophy.

随着新的 Azure 监视和警报平台部署到位,Azure Monitor 中的经典警报已对公有云用户停用,但在 2021 年 5 月 31 日 之前仍可受限使用。With the new Azure monitoring and alerting platform in place, classic alerts in Azure Monitor are retired for public cloud users, though still in limited use until 31 May 2021. Azure 中国世纪互联的经典警报将于 2024 年 2 月 29 日 停用。Classic alerts for Azure China 21Vianet will retire on 29 February 2024.

Azure 门户中的经典警报

我们鼓励你开始在新平台中重新创建警报。We encourage you to get started and recreate your alerts in the new platform.

重要

基于活动日志创建的经典警报规则不会被弃用或迁移。Classic Alert rules created on Activity Log will not be deprecated or migrated. 可以从新的 Azure Monitor -“警报”按现样访问和使用基于活动日志创建的所有经典警报规则。All classic alert rules created on Activity Log can be accessed and used as-is from the new Azure Monitor - Alerts. 有关详细信息,请参阅使用 Azure Monitor 创建、查看和管理活动日志警报For more information, see Create, view, and manage activity log alerts using Azure Monitor. 类似地,可以从新的“服务运行状况”部分按现样访问和使用基于服务运行状况的警报。Similarly, Alerts on Service Health can be accessed and used as-is from the new Service Health section. 有关详细信息,请参阅基于服务运行状况通知的警报For details, see alerts on service health notifications.

Azure 资源的统一指标和警报Unified Metrics and Alerts for Azure resources

在 2018 年 3 月,我们发布了 Azure 资源的下一代警报。In March 2018, we released the next generation of alerting for Azure resources. 新的指标平台和警报速度更快,并使用维度提供更高的粒度。The newer metric platform and alerting is faster and provides more granularity using dimensions. 维度可用于切片并筛选特定的值组合、条件或操作。Dimensions allow you to slice and filter to specific value combination, condition, or operation. 新的指标警报使用操作组,因此可以发送更多通知和执行更多自动化操作。The newer metric alerts use action groups allowing more notifications and automation actions. 详细了解如何使用 Azure Monitor 管理指标警报See more information on managing metric alerts using Azure Monitor.

Azure 资源的新指标按以下形式提供:Newer metrics for Azure resources are available as:

经典监视和警报平台的停用Retirement of Classic monitoring and alerting platform

如前所述,旧的经典监视和警报已对公有云用户停用。As stated earlier, older classic monitoring and alerting are retired for public cloud users. 这包括关闭相关的 API、Azure 门户界面以及其中的服务,但在 2021 年 5 月 31 日 之前,这些功能仍可供受限使用。It includes the closure of related APIs, Azure portal interface, and services in it, though still in limited use until 31 May 2021. Azure 中国世纪互联的经典警报将于 2024 年 2 月 29 日 停用。Classic alerts for Azure China 21Vianet will retire on 29 February 2024.

具体而言,停用范围包括:当前可通过 Azure 门户中的“警报(经典)”部分使用的、可作为 microsoft.insights/alertrules 资源访问的经典指标。Specifically, the retirement scope is for classic metrics currently available in the Alerts (classic) section of Azure portal and accessible as microsoft.insights/alertrules resources.

这意味着:This means:

  • 经典监视和警报服务将停用,并且不再可用于创建新的警报规则。Classic monitoring and alerts service will be retired and no longer available for creation of new alert rules.
  • 继续存在于“警报(经典)”中的任何警报规则都会继续执行并触发通知。Any alert rules that continue to exist in Alerts (classic) will continue to execute and fire notifications.
  • 将迁移大部分经典警报规则。Most classic alert rules will be migrated. 该过程无缝进行且没有任何停机时间,并且客户在监视覆盖范围内将没有任何损失。The process will be seamless without any downtime and customers will have no loss in monitoring coverage.
  • 触发的通知将包括新的有效负载结构。Fired notifications will include new payloads structure. 目标需要经过调整才能与新结构配合工作。Target will need to be adapted to work with the new structure.
  • 一些无法自动迁移的、需要用户手动操作的经典警报规则将继续运行。Some classic alert rules that cannot be automatically migrated and will require manual action from users to continue to run.

重要

Azure Monitor 已推出一个工具,让用户自愿性地将其经典警报规则迁移到新平台。Azure Monitor has rolled out a tool to voluntarily migrate their classic alert rules to the new platform. 服务停用后,剩余的规则将自动迁移。Remaining rules will be migrated automatically once the service is retired. 在迁移经典警报规则后,客户需确保对使用经典警报规则有效负载的自动化进行调整,以处理来自其他 Azure 资源的统一指标和警报的新有效负载。Customers will need to ensure automation consuming classic alert rule payload is adapted to handle the new payload from Unified Metrics and Alerts for other Azure resources, after migration of the classic alert rules. 有关详细信息,请参阅准备经典警报规则迁移For more information, see prepare for classic alert rule migration.

已迁移的警报规则的定价Pricing for Migrated Alert Rules

我们正在推出一个迁移工具,它可以帮助你将 Azure Monitor 经典警报迁移到新的警报体验。We're rolling out a migration tool to help you migrate your Azure Monitor classic alerts to the new alerts experience. 已迁移的警报规则和相应的已迁移操作组(电子邮件、Webhook 或 LogicApp)仍将免费。The migrated alert rules and corresponding migrated action groups (email, webhook, or LogicApp) will remain free of charge. 迁移警报规则以后,你可以继续免费使用以前的经典警报功能,包括编辑阈值、聚合类型和聚合粒度的功能。The functionality you had with classic alerts including the ability to edit the threshold, aggregation type, and the aggregation granularity will continue to be available for free with your migrated alert rule. 但是,如果你编辑已迁移的警报规则,以便使用任何新的警报平台功能、通知或操作类型,则需支付相应的费用。However, if you edit the migrated alert rule to use any of the new alert platform features, notifications or action types, a corresponding charge will apply. 若要详细了解警报规则和通知的定价,请参阅 Azure Monitor 定价For more information on the pricing for alert rules and notifications, see Azure Monitor Pricing.

下面是警报规则会产生费用的案例:The following are examples of cases where you'll incur a charge for your alert rule:

  • 新 Azure Monitor 平台上除免费单位数之外创建的任何新警报(非迁移)规则Any new (non-migrated) alert rule created beyond free units, on the new Azure Monitor platform
  • Azure Monitor 内除免费单位数之外引入和保留的任何数据Any data ingested and retained beyond free units included by Azure Monitor
  • Application Insights 执行的任何多测试 Web 测试Any multi-test web tests executed by Application Insights
  • Azure Monitor 内除免费单位数之外存储的任何自定义指标Any custom metrics stored beyond free units included in Azure Monitor
  • 经过编辑后可以使用更新的指标警报功能(例如频率、多个资源/维度、动态阈值、变化的资源/信号等)的任何已迁移警报规则。Any migrated alert rules that are edited to use newer metric alert features like frequency, multiple resources/dimensions, Dynamic Thresholds, changing resource/signal, and so on.
  • 任何经过编辑后可以使用更新的通知或操作类型(例如短信)的已迁移操作组。Any migrated action groups that are edited to use newer notifications, or action types like SMS.

后续步骤Next steps