What happened?
I get the error: Failed to evaluate queries and expressions: failed to execute conditions: only data source queries may be inputs to a classic condition, E is a Expression
What did you expect to happen?
I was hoping it would let me use the math expression in my classic condition to fire an alert.
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Failed to evaluate queries and expressions: failed to execute conditions: only data source queries may be inputs to a classic condition, E is a Expression
I think you can definitely achieve what you want, but maybe not using the Classic Condition. What is your datasource? It appears from your screenshot that you already have some queries working and presumably displaying your data. Can you post those here?
I have the same problem and want to use classic condition expression with math expression, grafana 8.3.3.
Use case:
Query A (elasticsearch) - Count(A)
Query B (elasticsearch) - Count(B)
Expression Math: Count(A) / Count(B) * 100 - to have percentage
Expression Classic Condition: When exp_math is Above X trigger alert
it worked for me:
Use case:
Query A (elasticsearch) - Count(A)
Query B (elasticsearch) - Count(B)
Expression Reduce A
Expression Reduce B
Expression Math: ($C * 100) / $D < 80