prom-label-proxy icon indicating copy to clipboard operation
prom-label-proxy copied to clipboard

change: make `-error-on-replace` more cooperating

Open simonpasquier opened this issue 1 year ago • 0 comments

With this change, the proxy wouldn't necessary return an error if -error-on-replace is set and the incoming query has a label matcher overlapping with the enforced label.

For instance when the enforced label is namespace="foo", the following expressions aren't rejected anymore:

  • up{namespace!="bar"}
  • up{namespace=~"foo|bar"}
  • up{namespace!~"bar"}

The following expressions are rejected as before:

  • up{namespace=""}
  • up{namespace="bar"}
  • up{namespace=~"bar|fred"}
  • up{namespace!~"foo"}

simonpasquier avatar Jun 26 '24 12:06 simonpasquier