Forum Discussion
JACK_LAI_1117
Jun 15, 2020Copper Contributor
how can I use this result to alert me
In azure logs , I use this to get my linux server disk usage
Perf |where TimeGenerated > ago(3min)
| where ObjectName == "Logical Disk" // the object name used in Linux records
| where CounterName == "% Used Space" and InstanceName != "_Total"
| summarize by InstanceName,CounterValue
But when I use to result to became alert , it always show "Search Query should contain 'AggregatedValue' and 'bin(TimeGenerated, [roundTo])' for Metric alert type"
So how can I overcome it ??
Perf |where TimeGenerated > ago(3min) | where ObjectName == "Logical Disk" // the object name used in Linux records | where CounterName == "% Used Space" and InstanceName != "_Total" | summarize by InstanceName,CounterValue, bin(TimeGenerated,1m) | extend AggregatedValue = CounterValueor see examples on this page:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-unified-log
2 Replies
- CliveWatsonFormer Employee
Perf |where TimeGenerated > ago(3min) | where ObjectName == "Logical Disk" // the object name used in Linux records | where CounterName == "% Used Space" and InstanceName != "_Total" | summarize by InstanceName,CounterValue, bin(TimeGenerated,1m) | extend AggregatedValue = CounterValueor see examples on this page:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-unified-log
- JACK_LAI_1117Copper Contributor