azure-monitor-datasource icon indicating copy to clipboard operation
azure-monitor-datasource copied to clipboard

Monitor Azure VM Guest (classic) Metrics

Open jungopro opened this issue 6 years ago • 7 comments

Hi Everyone

I looked in the issues and documentation and couldn't find it, if it's already on the roadmap please point me in the right direction...

How can I show VM metrics from the Guest (classic) namespace? For example, the average memory of a VM is not in the Virtual Machine Host namespace but rather in the Guest (classic) namespace

Any standard way to show them in grafana, without installing special tools / exporters?

Thanks Omer

jungopro avatar Oct 29 '18 12:10 jungopro

@daniellee Yes, how to add azure vm extended metrics in Grafana? https://docs.microsoft.com/en-us/azure/cost-management/azure-vm-extended-metrics?

rerime avatar Mar 01 '19 11:03 rerime

@rerime I have also followed the instructions in that document but it did not detail the relevant information relating to the namespace name in grafana.

I'm guessing it should be "Microsoft.Compute/virtualMachines/guest" but it still isnt coming up for me

nhjiejan avatar Apr 05 '19 13:04 nhjiejan

Has anybody managed to get the VM extended metrics working in Grafana? I am trying to add metric '\LogicalDisk(C:)% Free Space' but have so far been unable to. Extended metrics have been enabled on the VM.

ghunter82 avatar Jul 12 '19 12:07 ghunter82

I'm also interested in this. I've upgraded to v6.4.0-beta1 to enable metric namespaces but "Guest (classic)" doesn't appear as an option

davidwneary avatar Sep 25 '19 11:09 davidwneary

Can someone answer if Grafana can support Azure VM Guest OS (classic) metrics with Azure Monitor?

davliu-ms avatar Nov 06 '19 16:11 davliu-ms

I was able to get those metrics via Azure Log Analytics. Thanks to https://stackoverflow.com/questions/42853392/monitor-free-disk-space-on-azure-vm

You should have it configured in datasource - see your workspace at least. Then in query select that source and workspace and use something like this: // Virtual Machine free disk space // Show the latest report of free disk space, per instance Perf | where ObjectName == "LogicalDisk" or // the object name used in Windows records ObjectName == "Logical Disk" // the object name used in Linux records | where CounterName == "Free Megabytes" | summarize arg_max(TimeGenerated, *) by InstanceName // arg_max over TimeGenerated returns the latest record | project TimeGenerated, InstanceName, CounterValue

igor-teresco avatar Nov 08 '19 07:11 igor-teresco

From my understanding, this is still not-supported?

Rzpeg avatar Jan 21 '20 13:01 Rzpeg