PromQL: support for top-level binary arithmetic operators#140541
Merged
felixbarny merged 11 commits intoelastic:mainfrom Jan 14, 2026
Merged
PromQL: support for top-level binary arithmetic operators#140541felixbarny merged 11 commits intoelastic:mainfrom
felixbarny merged 11 commits intoelastic:mainfrom
Conversation
Examples of queries that are supported now:
* `network.bytes_in * 8`
* `network.eth0.rx + network.eth0.tx`
* `max(network.total_bytes_in) * 8`
* `network.total_bytes_in{cluster!="prod"} / network.total_bytes_in{cluster!="staging"}`
Follow-up from elastic#140135
Collaborator
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
kkrik-es
reviewed
Jan 13, 2026
...ain/java/org/elasticsearch/xpack/esql/plan/logical/promql/operator/VectorBinaryOperator.java
Outdated
Show resolved
Hide resolved
sidosera
reviewed
Jan 14, 2026
|
|
||
| division_within_series_grouping_promql | ||
| required_capability: promql_pre_tech_preview_v13 | ||
| PROMQL index=k8s step=1h div=( |
Contributor
There was a problem hiding this comment.
nit: Can we also have test where step is different from range vector duration?
Member
Author
There was a problem hiding this comment.
Makes sense, I'll create a follow up change
sidosera
approved these changes
Jan 14, 2026
spinscale
pushed a commit
to spinscale/elasticsearch
that referenced
this pull request
Jan 21, 2026
Examples of queries that are supported now:
* `network.bytes_in * 8`
* `network.eth0.rx + network.eth0.tx`
* `max(network.total_bytes_in) * 8`
* `network.total_bytes_in{cluster!="prod"} / network.total_bytes_in{cluster!="staging"}`
Follow-up from elastic#140135
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Examples of queries that are supported now:
network.bytes_in * 8network.eth0.rx + network.eth0.txmax(network.total_bytes_in) * 8network.total_bytes_in{cluster!="prod"} / network.total_bytes_in{cluster!="staging"}Follow-up from #140135