azure monitor to alert on low space on /root , /var and /etc

Viewed 96

I have Azure Linux VMs for which i want to configure Azure-Monitor Alerts when my /root,/etc and /var volumes are more than 90% utilized. Please suggest way to achieve this.

1 Answers

You can run a KQL to achieve this.

For example,

InsightsMetrics
| where Computer in (
"CH1-UBNTVM", //Linux
"DC10.na.contosohotels.com" // Windows
)
| where Namespace == "LogicalDisk"
| where Name == "FreeSpacePercentage"
| extend Disk=tostring(todynamic(Tags)["vm.azm.ms/mountId"])
| summarize arg_max(TimeGenerated, *) by Disk, Computer
| project TimeGenerated, Disk, Computer, Val
| where Val > 90

enter image description here

More info can be found her :- https://docs.microsoft.com/en-us/answers/questions/831491/how-to-setup-azure-alert-when-disk-space-is-90-for.html

Thanks

Related