简体   繁体   English

没有从Azure VM规模集或Azure ServiceBus返回的指标

[英]No metrics returned from Azure VM Scale Set or Azure ServiceBus

When I use Get-AzureRmMetricDefinition on a valid resourceId, I get no results. 当我对有效的resourceId使用Get-AzureRmMetricDefinition时,没有任何结果。

Get-AzureRmMetricDefinition -ResourceId /subscriptions/{SUB_ID}/resourceGroups/{GroupName}/providers/Microsoft.ServiceBus/namespaces/{Namespace} or /subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName} or /subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName}/virtualMachines/0 Get-AzureRmMetricDefinition -ResourceId /subscriptions/{SUB_ID}/resourceGroups/{GroupName}/providers/Microsoft.ServiceBus/namespaces/{Namespace}/subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName}/subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName}/virtualMachines/0

I have verified the Diagnostics Extension is selected in the VM template. 我已经确认在VM模板中选择了Diagnostics Extension。 Here's the extension details in the VM0 information: Id : /subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachines/{ScaleSetName}_0/extensions/VMDiagnosticsVmExt_vmNodeType0Name Name : VMDiagnosticsVmExt_vmNodeType0Name Type : Microsoft.Compute/virtualMachines/extensions Location : westus Publisher : Microsoft.Azure.Diagnostics VirtualMachineExtensionType : IaaSDiagnostics TypeHandlerVersion : 1.5 AutoUpgradeMinorVersion : True Settings : {"WadCfg":{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":"50000","EtwProviders":{"EtwEventSourceProviderConfiguration":[{"provider":"Microsoft-ServiceFa bric-Actors","scheduledTransferKeywordFilter":"1","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableActorEventTable"}},{"provider":"Microsoft-ServiceF abric-Services","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableServiceEventTable"}}],"EtwManifestProviderConfiguration":[{"provider":"cbd93bc2-71e5 -4566-b3a7-595d8eeca6e8","scheduledTransferLogLevelFilter":"Information","scheduledTransferKeywordFilter":"4611686018427387904","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestina tion":"ServiceFabricSystemEventTable"}}]}}},"xmlCfg":"...","storageAccount":"j3vk3vnhlxaccyharmq6phsa"} ProvisioningState : Succeeded 以下是VM0信息中的扩展详细信息: Id : /subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachines/{ScaleSetName}_0/extensions/VMDiagnosticsVmExt_vmNodeType0Name Name : VMDiagnosticsVmExt_vmNodeType0Name Type : Microsoft.Compute/virtualMachines/extensions Location : westus Publisher : Microsoft.Azure.Diagnostics VirtualMachineExtensionType : IaaSDiagnostics TypeHandlerVersion : 1.5 AutoUpgradeMinorVersion : True Settings : {"WadCfg":{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":"50000","EtwProviders":{"EtwEventSourceProviderConfiguration":[{"provider":"Microsoft-ServiceFa bric-Actors","scheduledTransferKeywordFilter":"1","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableActorEventTable"}},{"provider":"Microsoft-ServiceF abric-Services","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableServiceEventTable"}}],"EtwManifestProviderConfiguration":[{"provider":"cbd93bc2-71e5 -4566-b3a7-595d8eeca6e8","scheduledTransferLogLevelFilter":"Information","scheduledTransferKeywordFilter":"4611686018427387904","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestina tion":"ServiceFabricSystemEventTable"}}]}}},"xmlCfg":"...","storageAccount":"j3vk3vnhlxaccyharmq6phsa"} ProvisioningState : Succeeded Id : /subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachines/{ScaleSetName}_0/extensions/VMDiagnosticsVmExt_vmNodeType0Name Name : VMDiagnosticsVmExt_vmNodeType0Name Type : Microsoft.Compute/virtualMachines/extensions Location : westus Publisher : Microsoft.Azure.Diagnostics VirtualMachineExtensionType : IaaSDiagnostics TypeHandlerVersion : 1.5 AutoUpgradeMinorVersion : True Settings : {"WadCfg":{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":"50000","EtwProviders":{"EtwEventSourceProviderConfiguration":[{"provider":"Microsoft-ServiceFa bric-Actors","scheduledTransferKeywordFilter":"1","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableActorEventTable"}},{"provider":"Microsoft-ServiceF abric-Services","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableServiceEventTable"}}],"EtwManifestProviderConfiguration":[{"provider":"cbd93bc2-71e5 -4566-b3a7-595d8eeca6e8","scheduledTransferLogLevelFilter":"Information","scheduledTransferKeywordFilter":"4611686018427387904","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestina tion":"ServiceFabricSystemEventTable"}}]}}},"xmlCfg":"...","storageAccount":"j3vk3vnhlxaccyharmq6phsa"} ProvisioningState : Succeeded

Question: Why am I unable to get metrics from any of the items in my subscription and what additional steps can I take to find the problem? 问题:为什么我无法从订阅中的任何项目中获取指标,我可以采取哪些其他步骤来发现问题?

Confirmation from Microsoft that, at least at the moment, Service Bus does not support this command. Microsoft的确认,至少在目前,Service Bus不支持此命令。 You can query SB metrics via the REST API instead, described here: https://msdn.microsoft.com/en-us/library/azure/dn163586.aspx . 您可以改为通过REST API查询SB指标,如此处所述: https : //msdn.microsoft.com/en-us/library/azure/dn163586.aspx

For Virtual Machine scale sets, since there is monitoring diagnostics available for scale sets, definitely you would not get any metrics for scale sets. 对于虚拟机规模集,由于存在针对规模集的监视诊断,因此绝对不会获得针对规模集的任何指标。

The applicable metrics for any resource are available only when diagnostics is enabled for that particular resource. 仅当为特定资源启用诊断时,任何资源的适用指标才可用。 As mentioned above, Diagnostics is not supported for Virtual Machine scale set as of today, hence you would not get any list of applicable metrics even if you provide a valid resourceId of your scale set. 如上所述,到目前为止, 虚拟机规模集 支持诊断 ,因此即使您提供了规模集的有效resourceId,也不会获得任何适用指标的列表。

Hope this helps! 希望这可以帮助!

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

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