missing_collector

Diagnostic `nanook::cli::missing_collector`

Summary

metric `{0}` requires the `{1}` collector

Help

add a {1} collector

Details

When this fires

nanook check parsed a rule expression, found a metric selector like cpu.usage, and recognized the metric, but the collector that emits it isn't configured. The diagnostic underlines the exact selector in your TOML and names the collector kind you need.

What to check

Add the missing [[collectors]] entry. The kind in the help is the one that emits this metric in the builtin registry.

[[collectors]]
name = "cpu"
kind = "cpu"

A collector of that kind under any name works: use the bare metric (no source qualifier) and the rule will pick it up. Use nanook probe --name <name> to confirm the metric shows up.