日志分析查询特定磁盘(LUN)

发布于 2025-02-07 15:40:35 字数 349 浏览 3 评论 0原文

嗨,我正在尝试查询特定的磁盘吞吐量,但找不到必须输入的特定值才能从该特定磁盘中获取吞吐量图。那甚至可能吗?

这就是我到目前为止所拥有的:

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吲‖鸣 2025-02-14 15:40:35

您可以在查询中添加以下行以过滤特定的VM。

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

中获取特定磁盘详细信息的最终查询

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

在日志分析工作空间结果

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文