undefined_channel

Diagnostic `nanook::cli::undefined_channel`

Summary

rule references undefined channel `{0}`

Help

define [channels.{0}] in the config, or remove the channel field on the rule

Details

When this fires

nanook check walked the rules and found one whose channel = "..." doesn't match any [channels.*] block in the config. If the rule fired we'd have nowhere to dispatch it, so we reject the config before it ever runs.

What to check

Define the channel, or drop the field on the rule to fall back to defaults. Channel names are matched literally (case-sensitive).

[channels.ops]
kind = "log"

[[rules]]
name = "high cpu"
expr = "cpu.usage > 80%"
channel = "ops"