Netdata simple patterns
Unix prefers regular expressions. But they are just too hard, too cryptic to use, write and understand.
So, Netdata supports simple patterns.
Simple patterns are a space separated list of words, that can have
as a wildcard. Each world may use any number of
*. Simple patterns
allow negative matches by prefixing a word with
pattern = !*bad* * will match anything, except all those that
contain the word
Simple patterns are quite powerful:
pattern = *foobar* !foo* !*bar *
matches everything containing
foobar, except strings that start
foo or end with
You can use the Netdata command line to check simple patterns, like this:
Netdata stops processing to the first positive or negative match (left to right). If it is not matched by either positive or negative patterns, it is denied at the end.