grafana/carbon-relay-ng

support negative matching criterias

replay opened this issue · 2 comments

In routes and aggregators crng supports the filters prefix, sub, regex. We should add support for the inverted filters too, as I've seen multiple cases where this would have been useful. This could either be done by adding notPrefix, notSub, notRegex or we could add a simple invertFilter flag to inver the prefix/sub/regex.

I prefer adding notPrefix, notSub and notRegex, over adding an invertFilter flag. Because this makes it possible to combine positive and negative filter criteria together.

Submitted a PR and waiting for more feedback: #421