Azure Alert rule Free space metrics email notification does not show Drive

Marek Stelcik 20 Reputation points
2023-06-08T11:37:23.6033333+00:00

We have created alert rule using Insight metrics for Free space .

The detection logic works well. However big problem I face is neither the email, nor the alert in portal shows what logical drive on that particular machine caused alert.

Q:\Can you please help me guide how to add drive to the alert and email? (LikeC:, D:,...)

User's image

Alert rule with build in signal name

User's image

Email notification

Fired:Sev2 Azure Monitor Alert VM Free Space - vm-winserver-azuremonitortest02 on vm-winserver-azuremonitortest02 ( microsoft.compute/virtualmachines ) at 6/7/2023 5:55:48 PM	

View the alert in Azure Monitor >



Summary
Alert name	VM Free Space - vm-winserver-azuremonitortest02
Severity	Sev2
Monitor condition	Fired
Affected resource	vm-winserver-azuremonitortest02
Resource type	microsoft.compute/virtualmachines
Resource group	rg_lab_stelcik
Subscription	Microsoft Azure Sponsorship
Monitoring service	Platform
Signal type	Metric
Fired time	June 7, 2023 17:55 UTC
Alert ID	f816d974-8dcf-469e-8588-265e86a6e799
Alert rule ID	https://portal.azure.com/xxxxxxxx 
	


Metric alert condition type	SingleResourceMultipleMetricCriteria
Time aggregation	Minimum
Metric name	LogicalDisk\% Free Space
Metric namespace	Azure.VM.Windows.GuestMetrics
Metric value (when alert fired)	90
Operator	LessThan
Threshold	30
	




Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,829 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,202 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 21,411 Reputation points MVP
    2023-06-08T12:03:23.6933333+00:00

    Hi,

    The way the alert is defined it monitors the free space across all drives on the server. I believe there is dimension with name DiskMountId. When you add that dimension to the alert rule you will receive alert per disk and the threshold will be applied seperately for each disk. When the alert is fired the value in DiskMountId will be there to see which disk has reached the threshold.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


1 additional answer

Sort by: Most helpful
  1. Marek Stelcik 20 Reputation points
    2023-06-09T14:24:04.31+00:00

    yep that the tricky part, ama is running and config looked good to me also....weird... anyhow thanks for all your help Stanislav. Will try to dig more and then provide root cause if found for future references.

    0 comments No comments