查看 VPN 网关指标View VPN Gateway metrics

可以使用 Azure Monitor 监视 Azure VPN 网关。You can monitor Azure VPN gateways using Azure Monitor. 本文讨论了可通过门户获得的指标。This article discusses metrics that are available through the portal. 指标是能够为近实时方案提供支持的轻型数据,因此,它们特别适合用于警报和快速检测问题。Metrics are lightweight and can support near real-time scenarios, making them useful for alerting and fast issue detection.

指标Metric 单位Unit 粒度Granularity 说明Description
AverageBandwidthAverageBandwidth 字节/秒Bytes/s 5 分钟5 minutes 网关上所有站点到站点连接的组合带宽平均利用率。Average combined bandwidth utilization of all site-to-site connections on the gateway.
P2SBandwidthP2SBandwidth 字节/秒Bytes/s 1 分钟1 minute 网关上所有点到站点连接的组合带宽平均利用率。Average combined bandwidth utilization of all point-to-site connections on the gateway.
P2SConnectionCountP2SConnectionCount CountCount 1 分钟1 minute 网关上点到站点连接的计数。Count of point-to-site connections on the gateway.
TunnelAverageBandwidthTunnelAverageBandwidth 字节/秒Bytes/s 5 分钟5 minutes 在网关上创建的隧道的带宽平均利用率。Average bandwidth utilization of tunnels created on the gateway.
TunnelEgressBytesTunnelEgressBytes 字节Bytes 5 分钟5 minutes 在网关上创建的隧道中的传出流量。Outgoing traffic on tunnels created on the gateway.
TunnelEgressPacketsTunnelEgressPackets CountCount 5 分钟5 minutes 在网关上创建的隧道中的传出数据包的计数。Count of outgoing packets on tunnels created on the gateway.
TunnelEgressPacketDropTSMismatchTunnelEgressPacketDropTSMismatch CountCount 5 分钟5 minutes 隧道中因流量选择器不匹配导致的被丢弃传出数据包的计数。Count of outgoing packets dropped on tunnels caused by traffic-selector mismatch.
TunnelIngressBytesTunnelIngressBytes 字节Bytes 5 分钟5 minutes 在网关上创建的隧道中的传入流量。Incoming traffic on tunnels created on the gateway.
TunnelIngressPacketsTunnelIngressPackets CountCount 5 分钟5 minutes 在网关上创建的隧道中的传入数据包的计数。Count of incoming packets on tunnels created on the gateway.
TunnelIngressPacketDropTSMismatchTunnelIngressPacketDropTSMismatch CountCount 5 分钟5 minutes 隧道中因流量选择器不匹配导致的被丢弃传入数据包的计数。Count of incoming packets dropped on tunnels caused by traffic-selector mismatch.

以下步骤可帮助你查找和查看指标:The following steps help you locate and view metrics:

  1. 导航到门户中的虚拟网络网关资源Navigate to the virtual network gateway resource in the Portal

  2. 选择“概述”,以查看隧道总流入量和流出量指标。Select Overview to see the Total tunnel ingress and egress metrics.

    用于创建警报规则的选项Selections for creating an alert rule

  3. 若要查看上面列出的任何其他指标,To view any of the other metrics listed above. 请单击虚拟网络网关资源下的“指标”部分,然后从下拉列表中选择指标。Click on the Metrics section under your virtual network gateway resource and select the metric from the drop down list.

    资源列表中的“选择”按钮和 VPN 网关The Select button and the VPN gateway in the list of resources

后续步骤Next steps

若要针对隧道指标配置警报,请参阅针对 VPN 网关指标设置警报To configure alerts on tunnel metrics, see Set up alerts on VPN Gateway metrics.

若要基于隧道资源日志配置警报,请参阅基于 VPN 网关资源日志设置警报To configure alerts on tunnel resource logs, see Set up alerts on VPN Gateway resource logs.