Skip to content
Advertisement

Prometheus OR Operator

I am trying to run this query in Prometheus. But I need to add “OR” operation in envoy_cluster_name and add another cluster name, so incase a change of cluster name it picks the correct one.

Really appreciate if you can tell me how to use OR operator here.

I have tried the following, but it gives separate outcomes.

Thanks in advance.

Advertisement

Answer

Just enumerate cluster names in regexp. For instance the following filter would select time series with envoy_cluster_name='name1' and envoy_cluster_name='name2':

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement