-
Notifications
You must be signed in to change notification settings - Fork 453
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
[query] Add support for last_over_time
#3884
Conversation
a8d8660
to
d1fb173
Compare
Codecov Report
@@ Coverage Diff @@
## master #3884 +/- ##
=========================================
+ Coverage 48.4% 56.8% +8.4%
=========================================
Files 213 552 +339
Lines 19364 63291 +43927
=========================================
+ Hits 9386 36005 +26619
- Misses 9254 24065 +14811
- Partials 724 3221 +2497
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
src/query/test/compatibility/testdata/functions.test might need to have last_over_time uncommented too? |
3c98630
to
4066702
Compare
It appears that when an aggregation returns When doing this, I discovered that Prometheus expects the series to keep the metric name (e.g. Unfortunately, this makes the change a bit more complex than I initially anticipated, as now part of the code that was unconditional before, now needs to be conditional on what function is being executed. |
4066702
to
7c9f1bf
Compare
@ryansammonaiven thanks for the contribution! Can you update the branch and we'll get it reviewed/merged? |
7c9f1bf
to
641ed97
Compare
@wesleyk thanks for taking a look! I have updated the branch and all checks have passed. |
@ryansammonaiven looks like you need another update |
This `<aggregation>_over_time` function was added in Prometheus v2.26.0.
641ed97
to
8ce9185
Compare
@wesleyk thanks for the approval and merge! |
@ryansammonaiven we'll be cutting v1.4.0 soon with your change! |
@ryansammonaiven v1.4.0 is cut now! |
This
<aggregation>_over_time
function was added inPrometheus v2.26.0 (changelog, docs).
What this PR does / why we need it:
Fixes #3883.
Special notes for your reviewer:
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: