Hello,
I'm trying to find the best way to use federation to match a metric blacklist. Currently we are using a single query string as one long array element to accomplish this, i.e.:
params:
'match[]':
- >-
{__name__=~".+",
__name__!~"prefix_1.+",
__name__!~"prefix_2.+"}
Breaking up this string into multiple elements does not work, as each element is parsed into a separate match[] parameter in the HTTP request. The response appears as if each array element was queried individually and combined together after query execution, so one element only excludes one prefix, the next element only excludes the next prefix, etc. with the result that all matching timeseries are eventually returned.
What is the recommend way to provide a query blacklist when federating Prometheus servers?