Azure DNS 指标和警报Azure DNS metrics and alerts

Azure DNS 是 DNS 域的托管服务,它使用 Azure 基础结构提供名称解析。Azure DNS is a hosting service for DNS domains that provides name resolution using the Azure infrastructure. 本文介绍了 Azure DNS 服务的指标和警报。This article describes metrics and alerts for the Azure DNS service.

Azure DNS 指标Azure DNS metrics

Azure DNS 为客户提供指标,帮助他们监视服务中托管的 DNS 区域的具体各方面。Azure DNS provides metrics for customers to enable them to monitor specific aspects of their DNS zones hosted in the service. 此外,借助 Azure DNS 指标,可以基于利害条件配置和接收警报。In addition, with Azure DNS metrics, you can configure and receive alerts based on conditions of interest. 指标通过 Azure Monitor 服务提供。The metrics are provided via the Azure Monitor service. Azure DNS 通过 Azure Monitor 为 DNS 区域提供以下指标:Azure DNS provides the following metrics via Azure Monitor for your DNS zones:

  • QueryVolumeQueryVolume
  • RecordSetCountRecordSetCount
  • RecordSetCapacityUtilizationRecordSetCapacityUtilization

还可以在 Azure Monitor 文档页看到这些指标的定义You can also see the definition of these metrics on the Azure Monitor documentation page.

备注

这个时候,这些指标仅可用于 Azure DNS 中托管的公共 DNS 区域。At this time, these metrics are only available for Public DNS zones hosted in Azure DNS. 如果 Azure DNS 托管专用区域,那么这些指标不为这些区域提供数据。If you have Private Zones hosted in Azure DNS, these metrics will not provide data for those zones.

可以看到指标的最细粒度元素是 DNS 区域。The most granular element that you can see metrics for is a DNS zone. 当前无法查看区域中单个资源记录的指标。You cannot currently see metrics for individual resource records within a zone.

查询量Query volume

Azure DNS 中的“查询量”指标显示 Azure DNS 接收到的 DNS 区域的 DNS 查询量(查询流量) 。The Query Volume metric in Azure DNS shows the volume of DNS queries (query traffic) that is received by Azure DNS for your DNS zone. 度量单位为计数,聚合是一段时间内收到的查询总数。The unit of measurement is Count and the aggregation is the total of all the queries received over a period of time.

若要查看此指标,请从 Azure 门户的“监视”选项卡选择“指标(预览)”资源管理器体验。To view this metric, select Metrics (preview) explorer experience from the Monitor tab in the Azure portal. 从“资源”下拉列表选择 DNS 区域,选择“查询量”指标,然后选择“总和”作为“聚合”。Select your DNS zone from the Resource drop-down, select the Query Volume metric, and select Sum as the Aggregation. 下面的屏幕快照显示示例。Below screenshot shows an example. 有关指标资源管理器体验和图表的详细信息,请参阅 Azure Monitor 指标资源管理器For more information on the Metrics Explorer experience and charting, see Azure Monitor Metrics Explorer.

查询量

图:Azure DNS 查询量指标 Figure: Azure DNS Query Volume metrics

记录集计数Record Set Count

“记录集计数”指标显示 Azure DNS 中 DNS 区域的记录集数 。The Record Set Count metric shows the number of Recordsets in Azure DNS for your DNS zone. 对区域中定义的所有记录集进行计数。All the Recordsets defined in your zone are counted. 度量单位是计数,聚合是所有记录集最大值。The unit of measurement is Count and the aggregation is the Maximum of all the Recordsets. 若要查看此指标,请从 Azure 门户的“监视”选项卡选择“指标(预览)”资源管理器体验 。To view this metric, select Metrics (preview) explorer experience from the Monitor tab in the Azure portal. 从“资源”下拉列表选择 DNS 区域,选择“记录集计数”指标,然后选择“最大值”作为“聚合” 。Select your DNS zone from the Resource drop-down, select the Record Set Count metric, and then select Max as the Aggregation. 有关指标资源管理器体验和图表的详细信息,请参阅 Azure Monitor 指标资源管理器For more information on the Metrics Explorer experience and charting, see Azure Monitor Metrics Explorer.

记录集计数

图:Azure DNS 记录集计数指标 Figure: Azure DNS Record Set Count metrics

记录集容量使用率Record Set Capacity Utilization

Azure DNS 的“记录集容量使用率”指标显示 DNS 区域的记录集容量使用百分比 。The Record Set Capacity Utilization metric in Azure DNS shows the percentage of utilization of your Recordset capacity for a DNS Zone. Azure DNS 中的每个 DNS 区域受到记录集限制的约束,该限制定义区域允许的记录集最大数(请参阅 DNS 限制)。Every DNS zone in Azure DNS is subject to a Recordset limit that defines the maximum number of Recordsets that are allowed for the Zone (see DNS limits). 因此,此指标显示命中记录集限制的接近程度。Hence, this metric shows you how close you are to hitting the Recordset limit. 例如,如果为 DNS 区域配置了 500 个记录集,并且区域的默认记录集限制为 5000,那么 RecordSetCapacityUtilization 指标的值将显示为 10%(通过 500 除以 5000 计算得出)。For example, if you have 500 Recordsets configured for your DNS zone, and the zone has the default Recordset limit of 5000, the RecordSetCapacityUtilization metric will show the value of 10% (which is obtained by dividing 500 by 5000). 度量单位是百分比,聚合类型是最大值 。The unit of measurement is Percentage and the Aggregation type is Maximum. 若要查看此指标,请从 Azure 门户的“监视”选项卡选择“指标(预览)”资源管理器体验。To view this metric, select Metrics (preview) explorer experience from the Monitor tab in the Azure portal. 从“资源”下拉列表选择 DNS 区域,选择“记录集容量使用率”指标,然后选择“最大值”作为“聚合”。Select your DNS zone from the Resource drop-down, select the Record Set Capacity Utilization metric, and select Max as the Aggregation. 下面的屏幕快照显示示例。Below screenshot shows an example. 有关指标资源管理器体验和图表的详细信息,请参阅 Azure Monitor 指标资源管理器For more information on the Metrics Explorer experience and charting, see Azure Monitor Metrics Explorer.

显示如何查看指标的示例的屏幕截图。

图:Azure DNS 记录集容量使用率指标 Figure: Azure DNS Record Set Capacity Utilization metrics

Azure DNS 中的警报Alerts in Azure DNS

Azure Monitor 提供针对可用指标值进行报警的功能。Azure Monitor provides the capability to alert against available metric values. 新警报配置体验中提供 DNS 指标。The DNS metrics are available in the new Alert configuration experience. Azure Monitor 警报文档中所述,可以选择 DNS 区域作为资源,选择“指标”信号类型,并配置警报逻辑和其他参数(例如“周期”和“频率”) 。As described in detail in the Azure Monitor alerts documentation, you can select DNS Zone as the resource, choose the Metric signal type, and configure the alert logic and other parameters such as Period and Frequency. 满足警报条件时,可以进一步定义操作组,借此警报将通过所选操作传送。You can further define an Action Group for when the alert condition is met, whereby the alert will be delivered via the chosen actions. 有关如何配置 Azure Monitor 指标报警的详细信息,请参阅使用 Azure Monitor 创建、查看和管理警报For more information on how to configure alerting for Azure Monitor metrics, see Create, view, and manage alerts using Azure Monitor.

后续步骤Next steps