简体   繁体   English

虚拟机的Azure指标

[英]Azure Metrics for Virtual Machine

I am trying to obtain metrics for an Azure Virtual Machine. 我正在尝试获取Azure虚拟机的指标。 The standard Insights API provided doesn't provide all the metrics. 提供的标准Insights API并未提供所有指标。 Upon more reading I found that these metrics are stored in Azure Storage Accounts under different tables. 进一步阅读后,我发现这些指标存储在不同表下的Azure存储帐户中。 Is there a way to make an API call to these tables and retrieve the metrics ? 有没有办法对这些表进行API调用并检索指标?

There are two categories of metrics for Azure Virtual Machine -- host level metrics that are derived from Hyper V performance counters and the guest level metrics that come from within the VM itself. Azure虚拟机的指标有两类:从Hyper V性能计数器派生的主机级别指标和从VM本身来的来宾级别指标。

For host level metrics, the Insights REST API provides access to this data. 对于主机级指标,Insights REST API提供了对此数据的访问。

https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-metrics https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-metrics

For guest metrics such as Memory metrics, you need to install the diagnostics agent to collect this data to one of the supported sink types such as storage account, event hub, or Application Insights. 对于诸如内存指标之类的来宾指标,您需要安装诊断代理程序以将该数据收集到受支持的接收器类型之一,例如存储帐户,事件中心或Application Insights。 If you collect this data to storage account or event hub, you need to use the standard storage API or event hub API to access this data. 如果您将此数据收集到存储帐户或事件中心,则需要使用标准的存储API或事件中心API来访问此数据。 Specifically for storage, the data will be stored in WADPerformanceCountersTable in Azure table storage. 专门用于存储的数据将存储在Azure表存储的WADPerformanceCountersTable中。 There is no additional REST API to retrieve this data outside of the existing storage API. 没有其他REST API可以在现有存储API之外检索此数据。

https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/azure-diagnostics https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/azure-diagnostics

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

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