Yackzel
Yackzel

Reputation: 1

Log Analytics Query specific disk (LUN)

Hi I'm trying to query a specific disk Throughput but cannot find the specific value that has to be input to get the throughput chart from that specific disk. Is that even possible?

This is what I have until now:

Perf
 | where ObjectName == "LogicalDisk"
 | where CounterName == "Disk Bytes/sec"
 | where Computer contains "computername"
 | summarize ThroughputInMBs = (max(CounterValue)/1024/1024) by Computer, bin(TimeGenerated, 5m)
 | render timechart

Upvotes: 0

Views: 192

Answers (1)

Delliganesh Sevanesan
Delliganesh Sevanesan

Reputation: 4778

You can add the below line in your query to filter the specific VM.

| where Computer == "<Your Disk Name>"

Final Query to fetch specific Disk details in a Log Analytic Workspace

Perf
 | where Computer == "VM1"
 | where ObjectName == "LogicalDisk"
 | where CounterName == "Disk Bytes/sec"
 | summarize ThroughputInMBs = (avg(CounterValue)/1024/1024) by Computer, bin(TimeGenerated, 5m)
 | render timechart

Result

enter image description here

Upvotes: 0

Related Questions