简体   繁体   English

没有Azure负载平衡器资源的任何指标定义

[英]No any metric definitions for Azure Load Balancer resource

I try to retrieve Azure Metrics using Azure Monitor API . 我尝试使用Azure Monitor API检索Azure指标。

I use MonitorManagementClient class from Microsoft.Azure.Management.Monitor nuget package. 我用MonitorManagementClient从类Microsoft.Azure.Management.Monitor NuGet包。

I need to get metric definitions from the API using next code snippet: 我需要使用下一个代码片段从API获取指标定义:

client.MetricDefinitions.List(resourceId)

My code snippet works perfectly on other Azure resource types like Azure Traffic Manager, Azure Application Gateway, Azure Express Route, etc. 我的代码段可以在其他Azure资源类型(例如Azure Traffic Manager,Azure应用程序网关,Azure Express Route等)上完美运行。

But I don't see any metric definitions for Azure Load Balancer . 但是我看不到Azure Load Balancer的任何度量标准定义。

Why metric definitions are missed for Azure Load Balancer resource type? 为什么缺少Azure负载均衡器资源类型的指标定义?

It is just for the Standard SKUs, I test with that, it works. 我测试过,它仅适用于Standard SKU,它可以工作。 Also I can reproduce your issue with a Basic one. 我也可以用Basic来重现您的问题。

See the doc : 参见文档

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM