Oct 12 2020
07:49 AM
- last edited on
Apr 08 2022
10:38 AM
by
TechCommunityAP
Oct 12 2020
07:49 AM
- last edited on
Apr 08 2022
10:38 AM
by
TechCommunityAP
Hi
I'm trying to analyze IOPS for VMs to optimize their size and I came accross this query:
Perf
| where ObjectName == "LogicalDisk"
| where CounterName == "Disk Transfers/sec"
| summarize avg(CounterValue) by Computer, bin(TimeGenerated, 5m)
Which sounds good. However, I can't find that specific metric when checking the Portal and going through Guest Metrics.
I just want to make sure that this would return the total IOPS of each server.
Thank you in advance
Oct 21 2020 07:44 AM
Solution@Dante Nahuel Ciai not sure I undestand you correctly...
The counters you calculate through Log Analytics are not related to the metric you can see in the metrics UX. Instead, they are collected as performance log records by the Log Analytics agent.
If you're satisfied with the disk couner in the below query, you can create your own visual based on it (you can display it over time, of for all VMs) and pin it to a dashboard. Would that meet your needs?
Is this the issue, or did you mean something else?
Oct 26 2020 07:58 AM
Thank you for clarifying that. I was having a problem understanding where did the discrepancy between the portal VM metrics and the Log analytics came from.
Oct 21 2020 07:44 AM
Solution@Dante Nahuel Ciai not sure I undestand you correctly...
The counters you calculate through Log Analytics are not related to the metric you can see in the metrics UX. Instead, they are collected as performance log records by the Log Analytics agent.
If you're satisfied with the disk couner in the below query, you can create your own visual based on it (you can display it over time, of for all VMs) and pin it to a dashboard. Would that meet your needs?
Is this the issue, or did you mean something else?