-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
What happened: Currently, allow and deny lists are mutually exclusive, and only one of them can be specified at a time. So, for instance, if we want to "deny" all but one metric, for e.g., deny kube_*_created but don't deny kube_namespace_created, that's not possible as the standard regexp package has to guarantee an O(n) runtime complexity (or less) for all operations, which is not possible for lookarounds.
What you expected to happen: Using something like https://github.com/dlclark/regexp2#compare-regexp-and-regexp2 that allows for lookarounds in such expressions.
How to reproduce it (as minimally and precisely as possible): go run . --kubeconfig=$KUBECONFIG --metric-denylist='^kube_(?<=namespace_created).*_created$' doesn't work.