I'm trying to set up an Azure alert rule on a kusto query below:
ContainerLog
| parse-where LogEntry with * '//example.output ' Total:decimal ' ' Used:decimal ' '
| summarize avg_capacity=sum(Used)/sum(Total)*100 by TimeGenerated
The query works but when I tried to configure the alert measurement it does not pop out the calculated column which is [avg_capacity] as in the above query - see screenshot below
I tried some example Kusto queries that are querying against Perf table on Microsoft documentation and it worked fine, not sure what's the problem here,ContainerLog as a source table or 'parse-where' operator or?
Basically, I just want an alert rule on the [avg_capacity] field, any help is appreciated! Cheers!