You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何准确查看Azure Private End Point(PVEP)的数据使用量?

解决Azure Private Endpoint使用量统计不准确的方法

方法1:通过Azure Monitor自定义指标查询

  • 进入Azure门户的Monitor服务,选择Metrics
  • 资源类型选择Private Endpoints,选中目标PVEP实例
  • 选择关键指标:Inbound Bytes(入站流量)、Outbound Bytes(出站流量)
  • 在图表右上角的单位下拉菜单中,切换为Bytes/KB/MB/GB
  • 可按需设置时间范围(如过去24小时、7天),或添加筛选器细化数据维度

方法2:使用Azure CLI/PowerShell查询

Azure CLI命令示例:

az monitor metrics list --resource <你的PVEP资源ID> --metric "Inbound Bytes,Outbound Bytes" --time-grain PT1H --output table

执行后按小时粒度返回入站/出站字节数,自行换算单位即可(1KB=1024Bytes,1MB=1024KB,1GB=1024MB)

PowerShell命令示例:

Get-AzMetric -ResourceId <你的PVEP资源ID> -MetricName "Inbound Bytes","Outbound Bytes" -TimeGrain 01:00:00

返回结果中的Average字段为对应时间段的字节数,按需转换单位即可

方法3:配置Log Analytics工作区收集详细日志

  • 将PVEP的诊断日志发送到Log Analytics工作区
  • 在Log Analytics中使用Kusto查询统计流量:
AzureDiagnostics
| where ResourceType == "PRIVATEENDPOINTS"
| where Category == "NetworkSecurityGroupFlowEvent"
| summarize TotalBytes = sum(TotalBytes) by bin(TimeGenerated, 1h)
| project TimeGenerated, TotalBytes, TotalMB = TotalBytes / 1024 / 1024, TotalGB = TotalBytes / 1024 / 1024 / 1024

该查询会按小时汇总总流量,并直接输出MB、GB单位的数值

注意事项

  • PVEP默认刀片页面的统计可能存在延迟或粒度较粗,以上方法的数据更新频率更稳定(通常15分钟内)
  • 确保账号拥有Monitoring Reader或更高权限,才能正常访问指标和日志数据

内容的提问来源于stack exchange,提问作者user1074593

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 04:27:03