elastic / elastic/elasticsearch

PromQL: support or with on/ignoring modifiers

Open
#158,181 1 comment 0 reactions 0 assignees View on GitHub
:StorageEngine/PromQL Team:StorageEngine
Dominant language
Java
Stars
77.9k
Forks
26.1k
PR merge metrics
PR metrics pending

Description

## What

`or` with matching modifiers is rejected by the verifier:

```
set operator [or] with on/ignoring is not supported at this time
```

In Prometheus, `on(...)`/`ignoring(...)` on `or` changes the dedup identity: a right-hand series is dropped when the left operand contains any series matching on the reduced key set, rather than on the full label set. The current UNION translation dedups on the full label identity only.

Rejection site: `PromqlCommand.verifySetOperator`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.