问题描述
大家好,
我正在使用以下查询来生成警报
I am using below query to generate alert
性能|其中isnotempty(Computer)和ObjectName ==逻辑磁盘";和CounterName ==已用空间百分比";和CounterValue> 70 |按计算机,InstanceName,CounterValue,bin(TimeGenerated,15m)汇总//Oql:Type = Perf Computer = * ObjectName =逻辑磁盘CounterName =已用空间%". CounterValue> 70
Perf | where isnotempty(Computer) and ObjectName == "Logical Disk" and CounterName == "% Used Space" and CounterValue > 70 | summarize by Computer, InstanceName,CounterValue, bin(TimeGenerated,15m)// Oql: Type=Perf Computer=* ObjectName=Logical Disk CounterName="% Used Space" CounterValue>70
现在的问题是,我在相同的订阅中有2个VM,但在不同的资源组和位置中.
Now problem is, i have 2 VM with same in same subscription in a different resource group and location.
因此,每当警报生成时,我都需要检查两个VM.因此,有什么方法可以在警报结果中添加虚拟机的资源组和位置.
So whenever alert got generated i need to check for both VMs. So is there any possible way to add resource group and location of VM in alert result.
干杯,古拉夫(Gourav),请记住,如果有帮助,请将其标记为答案.
Cheers, Gourav Please remember to mark the replies as answers if it helped.
推荐答案
我认为不可能在警报中包含资源组和VM位置.
I dont think it would be possible to include resource group and VM location in the alert.
这篇关于我们可以在警报中添加资源组和虚拟机位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!