An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Log Analytics Workspace metric "% Used Space" split by computer and instance name shows only the root partition
I have set up Linux VMs with AMA installed, a data collection rule to collect data into a log analytics workspace.
When I query the Perf table I see the ingested data about "% Used Space" of mounted disks (/, /mnt, /run, custom data disks etc.). Everything looks correct.
Now I open the Monitoring/Metrics section of the workspace, I add a metric:
- Namespace: "Log Analytics standard metrics"
- Metric: "% Used Space"
Split by "Computer" and "InstanceName".
I only see / instances, I don't see any other.
Question is: how can I see my custom data disks?
The goal is to set up an alert on it, preferably to use the existing one, split by instance name.
Azure Monitor
-
Christos Panagiotidis • 3,551 Reputation points2026-07-15T09:38:17.9533333+00:00 Your AMA/DCR collection is working—the proof is that every mount point is present in
Perf. The workspace's Log Analytics standard metrics view is a metric projection, not a complete rendering of the table, so the missing instances cannot be recovered by changing the chart split.Create a log-search alert scoped to the workspace instead:
Perf | where ObjectName == "Logical Disk" | where CounterName == "% Used Space" | where InstanceName !in ("_Total", "total") | summarize UsedPct=max(CounterValue) by Computer, InstanceName, _ResourceIdSet the measurement to
UsedPct, choose your threshold (for example, greater than 80), and split byComputerandInstanceName. This evaluates each filesystem independently and identifies the exact VM and mount point in the fired alert. Add an explicit mount-point allow-list, or exclude transient mounts such as/run, if you want alerts only for persistent data disks. -
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-15T11:03:04.6733333+00:00 Hello Arnaud de Bossoreille,
The AMA agent and DCR are collecting the data correctly, which is confirmed by the fact that all mount points (
/,/mnt,/run, and your custom data disks) are visible in the Perf table. The behavior you're seeing is specific to the Log** Analytics standard **metrics namespace and not an issue with data collection.The**%**** Used **Space metric exposed in the Metrics blade is generated through a metric projection of selected Perf data rather than a direct representation of everything stored in the Perf table. Due to this limitation, the metric namespace commonly exposes only the root (
/) filesystem as an availableInstanceNamedimension, while additional mount points and custom data disks are not surfaced even though their data exists in Log Analytics.Since the complete disk utilization data is already available in the Perf table, the recommended approach is to create a Log** Search **Alert against the workspace and evaluate each filesystem independently:
Perf table:
Perf | where ObjectName == "Logical Disk" and CounterName == "% Used Space" | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 5m), Computer, InstanceNameWhen creating the alert rule:
- Scope the rule to your Log** Analytics **Workspace.
- Use the query above as a Custom** Log **Search condition.
- Configure AggregatedValue as the measurement and set the required threshold (for example, >85%).
- Split the alert by Computer and InstanceName so that each VM and mount point is evaluated separately.
- Associate your existing Action** **Group for notifications.
This method provides full visibility and alerting for all collected filesystems, including custom data disks, and avoids the limitations of the Log** Analytics standard **metrics namespace. If required, you can first run the following query to verify the exact object, counter, and instance names available in your environment:
Perf | distinct ObjectName, CounterName, InstanceNameThis will ensure the alert targets the correct disk instances and provides per-filesystem monitoring across all mounted volumes.
https://learn.microsoft.com/en-in/azure/azure-monitor/alerts/alerts-metric-logs
-
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-16T16:48:34.9033333+00:00 Arnaud de Bossoreille I’m following up on my previous comment as I haven’t received a response. Please let me know if you need any additional information or assistance from my side.
-
Arnaud de Bossoreille • 20 Reputation points
2026-07-17T06:53:51.76+00:00 Thank you all for this very useful information.
While ingesting it, I linked it to something I don't fully understand how to handle it. Let me elaborate...
I use terraform to set up alerts, I recall I used to have only a
azurerm_monitor_metric_alertand saw it "not" working. I fixed it not thanks to documentation I had found, but thanks to browser network inspection on the portal when creating an alert. This is when I realized I had to create aazurerm_monitor_scheduled_query_rules_logas well. To my understanding, the 2 items match what the portal calls "Metric alert rule" and "Log Search alert rule", both being created in one go in the "Alert rules" section.Side note: the "Log Search alert rule" seems to only be accessible by typing its name in the search box. However, it leads to a constant error "can't access property "toLowerCase", e.opertaor is undefined".
So, back to the point, my log search alert rule was projecting on "Computer" = "*" and "InstanceName" = "/", and my metric alert rule was configured the same.
Thanks to your information, I realized I could project on all instances in the log search, and alert only on selected instances. So this is how I fixed it.
Now, I am very frustrated by not being able to see the log search alert rule in the portal, see error above. I wish somebody able to fix it were reading this message.
I am also very frustrated by not being able to find the KQL query used by metrics described in https://learn.microsoft.com/en-in/azure/azure-monitor/reference/supported-metrics/microsoft-operationalinsights-workspaces-metrics. That would help setting up things manually like described in your answers. Anyway, now I think I don't need to do that.
-
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-17T09:29:15.8233333+00:00 Arnaud de Bossoreille Thank you for the detailed update, and I'm glad to hear the disk monitoring requirement is now working as expected.
Your implementation of projecting all
InstanceNamevalues from thePerftable and then selectively alerting on the required mount points is the recommended approach when full filesystem visibility is needed. Since the data is already available in Log Analytics, this method provides much greater flexibility than relying solely on the%`` ``Used`` ``Spacemetric exposed through the Log Analytics standard metrics namespace.Regarding the portal error:
can't access property "toLowerCase", e.operator is undefined
For long-term maintainability, it may be worth reviewing whether the alert rules can be migrated to the current Azure Monitor Scheduled Query Rules model, as Microsoft recommends using the newer Scheduled Query Rules API for log search alerts. Microsoft has also announced retirement of the legacy Log Analytics Alert API.
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log-api-switch?tabs=cli
Regarding the KQL behind the
%`` ``Used`` ``Spacemetric, there is currently no customer-accessible query that exposes the internal metric projection logic. The metric is generated by the Azure Monitor platform from collected log data, which explains why the values surfaced in Metrics Explorer do not always match every instance visible in thePerftable.Ultimately, your current solution using the
Perftable as the source of truth is the most flexible and scalable approach for per-filesystem monitoring and alerting, especially when custom mount points and data disks must be monitored independently.Thank you again for sharing your findings. I'm sure the additional Terraform and alerting details will be valuable for others who encounter a similar scenario.
-
Sina Salam • 31,456 Reputation points • Volunteer Moderator
2026-07-17T13:03:24.9533333+00:00 Hello Arnaud de Bossoreille,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having issue with Log Analytics Workspace metric "% Used Space" split by computer and instance name shows only the root partition.
In addition to previous contributor, since the required custom disk mount points are already present in the
Perftable, the collection path is healthy. The problem is not AMA, DCR, or the Linux agent. The gap is that the workspace legacy metric view in Metrics Explorer is not exposing everyInstanceNameas a metric time series. Therefore, you should stop using Metrics Explorer as the validation path and deploy a Log Search Alert directly fromPerf.Create a Log Search Alert against the
Perftable and split the alert byComputerandInstanceName. This directly alerts on each Linux filesystem or mount point, including custom data disks, and avoids false assumptions caused by incomplete metric visualization. Log search alerts are designed for scenarios where the required data is in logs or requires KQL filtering and summarization. - https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-types, https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/tutorial-log-alertI hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.
-
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-18T16:40:04.5066667+00:00 Arnaud de Bossoreille Could you check my response and please let me know if you need any additional information or assistance from my side.
-
Alex Burlachenko • 25,120 Reputation points • MVP • Volunteer Moderator2026-07-22T07:52:28.6266667+00:00 hi Arnaud de Bossoreille & thx for sharing urs issue here at Q&A portal,
what u're seeing is expected behavior. The Log Analytics standard metrics are derived from a subset of the data in the workspace and don't expose every dimension that's available in the Perf table. For % Used Space, the Metrics experience currently doesn't surface all mounted filesystems as separate InstanceName values, even though they're present in the underlying logs. If ur Perf queries show entries for /mnt, /run, and your data disks, then AMA and the DCR are collecting the data correctly. The limitation is in the workspace metrics projection, not in data collection.
For alerting on individual mount points, I'd recommend creating a log search alert against the Perf table instead of relying on the built-in metric. That lets you filter on ObjectName == "Logical Disk" and the specific InstanceName (for example /mnt or another mount point) and trigger an alert when % Used Space exceeds your threshold. If u believe all mount points should appear as metric dimensions, I'd also check whether this behavior is consistent across multiple workspaces and regions. If it is, it may be a product limitation rather than a configuration issue.
rgds,
Alex
&
If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal
and at my blog https://ctrlaltdel.blog/
-
Arnaud de Bossoreille • 20 Reputation points
2026-07-22T11:46:07.44+00:00 @VEMULA SRISAI , Thanks!
Regarding the "retirement of the legacy Log Analytics Alert API.", I think that has nothing to do with my setup:
- the doc says "As announced, the Log Analytics Alert API will be retired on October 1, 2025.", and my setup still works when provisioned from scratch
- as mentioned, I already have a scheduled query rule (I confirm it doesn't work without it)
The only issue is the portal facing with a javascript error (probably because of typo in a field name "opertaor" vs "operator") and it's kind of a problem to visualize the resources.
If you think I am not using the most recent Alert API (terraform resources
azurerm_monitor_scheduled_query_rules_logandazurerm_monitor_metric_alert), please indicate what's wrong because I'm a bit lost. -
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-30T13:28:08.3166667+00:00 Arnaud de Bossoreille Thank you for the clarification.
Based on the information you've shared, I don't see evidence that you're using the retired Log Analytics Alert API. Since you're deploying alerts through
azurerm_monitor_scheduled_query_rules_logandazurerm_monitor_metric_alert, and the deployment continues to work successfully, this does not by itself indicate use of a retired alerting platform. Microsoft also notes that log search alerts managed through the Scheduled Query Rules API are not affected by the legacy API retirement.Regarding the portal error:
can't access property "toLowerCase", e.operator is undefinedthis appears more like a portal-side rendering issue when opening the rule rather than a deployment or runtime failure. If the alert is being created successfully and evaluating correctly, the underlying resource is likely healthy even though the portal blade cannot display it properly.
To better understand whether the issue is related to the alert rule schema or to a portal defect, could you please share:
- AzureRM provider version
- Terraform configuration (sanitized if needed)
- The resource type/version created in Azure (ARM resource details)
This would help determine whether the rule is being created using a schema that the current portal experience does not fully handle.
I'm glad to hear the disk monitoring requirement itself is now working correctly using the Log Search Alert approach, which remains the recommended solution for per-filesystem monitoring and alerting.
-
Arnaud de Bossoreille • 20 Reputation points
2026-07-30T14:08:29.43+00:00 On the portal error, I would not conclude anything while the typo "opertaor" is not fixed.
-
VEMULA SRISAI • 13,900 Reputation points • Microsoft External Staff • Moderator
2026-07-31T13:30:25.7666667+00:00 Arnaud de Bossoreille Thank you for the clarification.
That's a fair point. Based on the information available, I agree that it would be difficult to draw firm conclusions about the cause of the portal behavior while the error itself appears to reference an undefined property and contains the
opertaorfield name shown in the client-side exception.Since the alert rule is being created and evaluated successfully, we can at least conclude that the issue does not appear to be affecting alert execution. However, regarding the portal rendering behavior itself, I agree that the error message should be investigated as it stands rather than assuming an underlying schema issue.
I'm glad the original monitoring requirement has been addressed through the Scheduled Query Rule configuration. Thank you as well for sharing the additional details around the portal experience and Terraform deployment.
Sign in to comment