Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimir query engine: add native histogram custom bucket-related annotations #8924

Merged
merged 10 commits into from
Aug 8, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Aug 7, 2024

What this PR does

This PR adds support for the following warnings in rate and sum in MQE:

  • histogram samples with a mixture of exponential and custom buckets at the same timestamp
  • histogram samples with incompatible custom buckets at the same timestamp

This uncovered two issues in Prometheus' engine:

I've opted to skip the affected tests that confirm our test cases match Prometheus' engine to unblock this PR.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

pkg/streamingpromql/functions/rate.go Outdated Show resolved Hide resolved
pkg/streamingpromql/testdata/ours/native_histograms.test Outdated Show resolved Hide resolved
pkg/streamingpromql/operators/aggregation.go Show resolved Hide resolved
pkg/streamingpromql/operators/aggregation.go Outdated Show resolved Hide resolved
pkg/streamingpromql/operators/aggregation.go Outdated Show resolved Hide resolved
@charleskorn charleskorn marked this pull request as ready for review August 8, 2024 01:53
@charleskorn charleskorn requested a review from a team as a code owner August 8, 2024 01:53
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@charleskorn charleskorn merged commit 1c0ad91 into main Aug 8, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/nhcb-annotations branch August 8, 2024 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants