SOLVED

Azure Monitor for VMs - Log Queries

Copper Contributor

Hi, I've installed Azure Monitor for VMs and I was under the impression we would need to change our existing Log Queries to stop using the Perf table for CPU/Disk/Memory/etc and start using some of the tables under the "Azure Monitor for VMs" group in Log Analytics (InsightsMetrics, etc.). However, looking at sample queries for CPU, disk, memory, etc., they all seem to still use the Perf table. Is that corect? We did not install the preview version of Azure Monitor for VMs. 

 

Can you share some examples where I would use the tables such as InsightsMetrics.

 

Thanks!

2 Replies
best response confirmed by Jonathan Rossi (Copper Contributor)
Solution

@Jonathan Rossi you're right, there are 2 separate performance tables.

Perf is still the default table, it holds the performance counters you chose to collect (at the workspace level). The previous version of VM Insights used it as well. The new version of VM Insights now collects performance metrics into the InsightsMetrics table. The sample queries that you see for any VM resource, on its Logs page, use the Perf table, regardless of the VMInsights version you install.

If you're concerned about having both Perf and InsightsMetrics, read this FAQ entry.

The link provided on the first reply to your question (to sample alert queries) has the best examples to querying InsightsMetrics I could find.

1 best response

Accepted Solutions
best response confirmed by Jonathan Rossi (Copper Contributor)
Solution

@Jonathan Rossi you're right, there are 2 separate performance tables.

Perf is still the default table, it holds the performance counters you chose to collect (at the workspace level). The previous version of VM Insights used it as well. The new version of VM Insights now collects performance metrics into the InsightsMetrics table. The sample queries that you see for any VM resource, on its Logs page, use the Perf table, regardless of the VMInsights version you install.

If you're concerned about having both Perf and InsightsMetrics, read this FAQ entry.

The link provided on the first reply to your question (to sample alert queries) has the best examples to querying InsightsMetrics I could find.

View solution in original post