Azure 虚拟网络 NAT 指标Azure Virtual Network NAT metrics

Azure 虚拟网络 NAT 网关资源提供多维指标。Azure Virtual Network NAT gateway resources provide multi-dimensional metrics. 可以使用这些指标来观察操作以及进行故障排除You can use these metrics to observe the operation and for troubleshooting. 可以针对严重问题(例如 SNAT 耗尽)配置警报。Alerts can be configured for critical issues such as SNAT exhaustion.

图:用于出站 Internet 连接的虚拟网络 NATFigure: Virtual Network NAT for outbound to Internet

指标Metrics

NAT 网关资源在 Azure Monitor 中提供以下多维指标:NAT gateway resources provide the following multi-dimensional metrics in Azure Monitor:

指标Metric 说明Description 建议的聚合Recommended Aggregation 维度Dimensions
字节Bytes 处理的入站和出站字节数Bytes processed inbound and outbound SUMSum 方向(传入;传出),协议(6 TCP;17 UDP)Direction (In; Out), Protocol (6 TCP; 17 UDP)
数据包数Packets 处理的入站和出站数据包数Packets processed inbound and outbound SUMSum 方向(传入;传出),协议(6 TCP;17 UDP)Direction (In; Out), Protocol (6 TCP; 17 UDP)
丢弃的数据包数Dropped packets NAT 网关丢弃的数据包数Packets dropped by the NAT gateway SUMSum /
SNAT 连接计数SNAT Connection Count 每个间隔的状态转换次数State transitions per interval SUMSum 连接状态,协议(6 TCP;17 UDP)Connection State, Protocol (6 TCP; 17 UDP)
SNAT 连接总数Total SNAT connection count 当前的活动 SNAT 连接数(使用的大约 SNAT 端口数)Current active SNAT connections (~ SNAT ports in use) SUMSum 协议(6 TCP;17 UDP)Protocol (6 TCP; 17 UDP)

警报Alerts

可以在 Azure Monitor 中针对上述每个指标配置警报。Alerts for metrics can be configured in Azure Monitor for each of the preceding metrics.

限制Limitations

不支持资源运行状况。Resource Health isn't supported.

后续步骤Next steps