-
Notifications
You must be signed in to change notification settings - Fork 54
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
engine: remove timestamp function so that we fallback to promql again #204
engine: remove timestamp function so that we fallback to promql again #204
Conversation
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
0e3671d
to
01f49de
Compare
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.
Thanks, I agree we should roll this back.
Let's create a separate issue to support |
That might be non trivial and require changes to |
Yes, but in the long run we have to support it natively in the engine, right? Then let's have an issue for sure and make required changes if needed. |
I think we could to push down the timestamp func into the selector and store the timestamp in the value for each series. Having an issue to track this makes sense since it’s a commonly used function. |
We could push the timestamp function down into the vector selector maybe, thats where we have the information easily available and timestamp only makes sense in |
Thanks. Let's merge it. |
Prometheus returns the timestamp of the last sample in the lookback period, we currently only return 0 because we never pass a timestamp to the point that is passed to the function. It is not clear how to fix this since we do not save the timestamp of the last sample in the lookback period currently. Notice that prometheus returns
30
even at timestamp90000