filter
Filter DSL reference for adapter and collector `filter` fields.
Boolean expressions for filtering metrics by name, source, or labels. A subset of nanook-expr tuned for metric routing rather than thresholding.
Pseudo-fields
| Field | What |
|---|---|
name | metric name (e.g. cpu.usage) |
src | collector name (e.g. cpu) |
<key> | label value (e.g. core, mount) |
Operators
| Op | Example |
|---|---|
like | name like "cpu.*" (glob, anchored) |
matches | name matches "^cpu\\..*" (regex, unanchored) |
is | name is "cpu.usage" |
not | negation prefix: name not like "*.debug" |
contains | name contains "cpu" |
&& ` |
Examples
# adapter: only cpu and mem metrics
= 'name like "cpu.*" || name like "mem.*"'
# adapter: exclude debug metrics
= 'name not like "*.debug"'
# collector: only specific interfaces
= 'iface like "eth*"'