Forum Discussion

Dante Nahuel Ciai's avatar
Dante Nahuel Ciai
Brass Contributor
Oct 12, 2020

Understanding IOPS with Log Analytics

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

  • 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?

  • 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?

    • Dante Nahuel Ciai's avatar
      Dante Nahuel Ciai
      Brass Contributor

      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.

Resources