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?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ed87c846-6524-4a4e-9c7e-937ccef81ca3n%40googlegroups.com.

Reply via email to