Is there some way how to monitor free disk space from the Azure Portal?
I know that there are all kinds of diagnostics for I/O, memory, network, CPU, .NET, SQL, ASP.NET, IIS, etc.
But is there some way to see how much free space there's on a disk attached to the VM?
All I found was this third-party solution:
http://cloudmonix.com/blog/how-to-monitor-free-disk-space-on-azure-vms/
But there should be some way how to see a basic metric like disk space without needing third-party SW, right?
This is possible in Azure portal. In the VM resource page select the Logs blade and search "free disk". You'll get a default query which can be run to get the disk usage. You can pin this query to dashboard or send it to workbook to check the usage frequently.
Update 2019
This is possible today. To monitor free disk space per drive with Azure Monitor do the following:
\LogicalDisk(C:)\% Free Space
.Percent
.Source: Azure Support.
To view the logs from the Azure Guest Monitor for Linux:
// Virtual Machine free disk space // Show the latest report of free disk space, per instance InsightsMetrics | where Name == "FreeSpacePercentage" | summarize arg_max(TimeGenerated, *) by Tags // arg_max over TimeGenerated returns the latest record | project TimeGenerated, Computer, Val, Tags
This results in the following alert query (you need AggregatedValue
and bin(TimeGenerated, <some time>)
in the query):
InsightsMetrics | where Name == "FreeSpacePercentage" | summarize AggregatedValue=arg_min(Val, *) by bin(TimeGenerated, 5min), Tags
To view the same for any generic diagnostics endpoint (thanks @gabe):
After turning this on, i was able to view the free disk space with a log query:
// 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
For now, it is not possible on Azure Portal.
But you could do it by using Azure OMS. There is a example how to use Azure OMS to monitor free disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With