简体   繁体   中英

Azure Metrics for Virtual Machine

I am trying to obtain metrics for an Azure Virtual Machine. The standard Insights API provided doesn't provide all the metrics. Upon more reading I found that these metrics are stored in Azure Storage Accounts under different tables. Is there a way to make an API call to these tables and retrieve the metrics ?

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.

For host level metrics, the Insights REST API provides access to this data.

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. 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. Specifically for storage, the data will be stored in WADPerformanceCountersTable in Azure table storage. There is no additional REST API to retrieve this data outside of the existing storage API.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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