Logical/set operators
These binary operators combine two instant vectors by matching their label sets. In Elasticsearch, only or (union) is evaluated; the and and unless operators are not supported yet (see Not yet supported and PromQL limitations).
Returns all elements from the left vector plus elements from the right vector that have no matching label sets in the left.
Operands
lhs,rhs(instant_vector)- The two instant vectors to combine by matching label sets.
Returns
An instant_vector.
Example
vector1 or vector2
Differences from Prometheus
Elasticsearch evaluates or only at the top level of an expression, and a top-level or chain supports at most 8 operands. A nested or, or a chain of more than 8 operands, returns a client error (4xx). See Unsupported PromQL constructs.