-
Notifications
You must be signed in to change notification settings - Fork 560
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 quantile_over_time
#10629
Conversation
@@ -179,7 +179,13 @@ func (m *FunctionOverRangeVector) NextSeries(ctx context.Context) (types.Instant | |||
|
|||
func (m *FunctionOverRangeVector) emitAnnotation(generator types.AnnotationGenerator) { | |||
metricName := m.metricNames.GetMetricNameForSeries(m.currentSeriesIndex) | |||
m.Annotations.Add(generator(metricName, m.Inner.ExpressionPosition())) | |||
pos := m.Inner.ExpressionPosition() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps types.EmitAnnotationFunc
could take in a parameter for argument index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difficulty with this is that FunctionOverRangeVector
doesn't know which order the arguments were in originally (inner operator first, or scalars first?), so I think what's here is the least-confusing option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance of a benchmark for this one please? I'd also like to see the effect on other range-vector queries against main.
tl;dr: MQE is far faster than Prometheus' engine for
|
5372b3d
to
1c685a4
Compare
What this PR does
This PR adds support in MQE for
quantile_over_time
.Which issue(s) this PR fixes or relates to
#10067
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.