如何在 Azure 中测量两个虚拟网络之间的网络流量 in/out?

How to measure the network traffic in/out between two virtual networks in azure?

我已经部署了两个关联两个不同虚拟网络的虚拟网络网关。我通过两个连接将它们连接起来(比如 connect_1 和 connect_2)。 一旦我这样做,在 azure 门户上我可以看到一些字节的数据进出。(数据 in:202.28 KiB,数据 out:202.66 KiB) 当我没有交换任何数据时,这怎么可能?

另外,如果我交换数据,测量带宽的参数是什么?会是 tunnel_egress_bytes_transferred 和 tunnel_ingress_bytes_transferred 吗?

对于当前使用的 VPN 网关带宽,您可以检查与此网关关联的所有连接的指标 Gateway S2S Bandwidth

如果交换数据,您可以在“虚拟网络网关”面板中为每个 VNET 到 VNET 连接检查 these dimension metricsTunnel 前缀名称。例如,select 带有过滤 ConnectionNameRemoteIP 的指标 TunnelAverageBandwidth,您将看到以字节/秒为单位的特定隧道带宽。

此外,如果您只想连接 Azure 中的两个虚拟网络,您可以 select VNet peering。操作简单,成本低。