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.
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.
2
Answers
You can run a KQL to achieve this.
For example,
More info can be found here :- https://learn.microsoft.com/en-us/answers/questions/831491/how-to-setup-azure-alert-when-disk-space-is-90-for.html
Thanks
Do you want to enlarge the disk space of your Azure VM?
I do know you want to enlarge your VM partition.
All the code, please log in your virtual machine, input in terminal, thanks!
Just use the code
df -iTh
to check your VM disk space, output just like below:Which partitions mounted at your
/root
,/etc
and/var
?You can find the result from the display of
df -hTi
.Enlarge or extend or resize your Azure VM follow below:
First, you need to know which partition mounted at your less disk target direction, e.g:
/root
;Second, you need to enlarge or extend or resize that target partition;
Third, expand your disks on Azure Linux VM, please refer:
Expand virtual hard disks on a Linux VM with the Azure CLI(Azure Linux VM Document)
OVER!