expected_expression
Diagnostic `nanook::expr::expected_expression`
Summary
expected expression
Help
expected metric name, number, or (
Details
When this fires
The parser hit a position where it needed a primary expression (a metric name, a number, or a parenthesised group) and found something else, like a stray operator, a closing bracket, or end-of-input.
What to check
Common culprits: an operator with nothing on one side, unbalanced parentheses, stray commas, or trailing and / or.
# broken
= "cpu.usage > "
# fixed
= "cpu.usage > 90"
Caught by nanook check. See @/docs/nanook-expr.md for the grammar.