SOLVED

Understanding IOPS with Log Analytics

Brass Contributor

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

2 Replies
best response confirmed by Dante Nahuel Ciai (Brass Contributor)
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?

@Noa Kuperberg 

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.

1 best response

Accepted Solutions
best response confirmed by Dante Nahuel Ciai (Brass Contributor)
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?

View solution in original post