missing_opt

Diagnostic `nanook::collectors::missing_opt`

Summary

collector `{0}` missing required option `{1}`

Help

set the option in [collectors.opts]

Details

When this fires

A collector's TryFrom<&CollectorCfg> (or its validate hook) ran and found no value for an option it needs. For example, process requires either pid or name (see crates/nanook-collectors/src/process.rs), and http requires url (see the Opt::new("url", ...).required() entry in http.rs). The error names the collector and the option that was empty.

What to check

The matching collector page under docs/content/docs/collectors/ lists the full opt set. Watch out for typos: an unrecognized key looks identical to a missing one.

[[collectors]]
name = "api"
kind = "http"
opts = { url = "https://api.example.com/health", timeout = "5s" }