rule_parse

Diagnostic `nanook::cli::rule_parse`

Summary

invalid rule

Details

When this fires

A rule expression failed to parse or typecheck. nanook check runs this against every [[rules]] block, and nanook run does it again at startup via engine.typecheck(). The wrapped diagnostic is anchored on your config TOML so the underline lands on the exact bit of the expr = "..." string that's wrong.

What to check

For unit-mismatch errors (e.g. cpu.usage > 80s), both sides must agree on dimensions. For unknown selectors, see the nanook::cli::unknown_metric, nanook::cli::missing_collector, and nanook::cli::unknown_collector_source codes.

nanook check --config nanook.toml