Skip to content

PromQL: Add support for sum aggregation on exponential histograms - #152082

Merged
JonasKunz merged 3 commits into
elastic:mainfrom
JonasKunz:promql-histo-sum
Jun 25, 2026
Merged

JonasKunz merged 3 commits into
elastic:mainfrom
JonasKunz:promql-histo-sum

Conversation

@JonasKunz

@JonasKunz JonasKunz commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Part of #150074.

Adds support for sum over histograms in PromQL. In PromQL sum is the aggregation to merge histograms across timeseries. So this PR wires sum to use the ES|QL HistogramMerge aggregation, which does exactly that.

@JonasKunz JonasKunz added >enhancement :StorageEngine/PromQL PromQL support for Elastic labels Jun 24, 2026
@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v9.5.0 labels Jun 24, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Hi @JonasKunz, I've created a changelog YAML for you.

@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

⏳ Building and deploying preview... View progress

This comment will be updated with preview links when the build is complete.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version.

We use applies_to tags to mark version-specific features and changes.

Expand for a quick overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

@JonasKunz
JonasKunz marked this pull request as ready for review June 25, 2026 07:51
@JonasKunz
JonasKunz requested a review from kkrik-es June 25, 2026 07:51
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@JonasKunz
JonasKunz enabled auto-merge (squash) June 25, 2026 07:58
@JonasKunz
JonasKunz merged commit 82e44b8 into elastic:main Jun 25, 2026
36 checks passed
@JonasKunz
JonasKunz deleted the promql-histo-sum branch June 25, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team :StorageEngine/PromQL PromQL support for Elastic Team:StorageEngine v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants