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

MQE: Add support for histogram_fraction #10048

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

jhesketh
Copy link
Contributor

@jhesketh jhesketh commented Nov 29, 2024

What this PR does

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

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

@jhesketh jhesketh requested a review from a team as a code owner November 29, 2024 04:26
Comment on lines +80 to +82
for histogram.T > lower.Samples[argIdx].T {
argIdx++
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing this, couldn't we do QueryTimeRange.PointIndex(histogram.T)? (assuming we passed the time range to this function)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that would work. There's a few other places that we need to adopt that too, so I'll do that as a followup if that's okay.

@jhesketh jhesketh enabled auto-merge (squash) November 29, 2024 05:23
@jhesketh jhesketh merged commit 64324a7 into grafana:main Nov 29, 2024
29 checks passed
@jhesketh jhesketh mentioned this pull request Dec 2, 2024
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