Replies: 2 comments 1 reply
-
This is because of the lookback that is done when getting the series and not the staleness, and it is set to looking back up to 5m from the queried time. If you are trying to query a series for time |
Beta Was this translation helpful? Give feedback.
-
Hm, thanks for explanation. It still looks weird to me, I'd expect query result to be without the 5min tail since it may be misleading for a user. If that is intentional, is there a use case why it would be needed? |
Beta Was this translation helpful? Give feedback.
-
What did you do?
I've started Prometheus 2.30.0 with flag
--enable-feature=promql-negative-offset
enabled and ran the following query:What did you expect to see?
Time series shifted by 10m:
What did you see instead? Under which circumstances?
Time series are shifted by 10m. But additionally it has a 5min tail of data points repeating the last values:
Apparently, this is happening due to staleness handling. I'm not sure if this behaviour is correct in this specific case, because without the negative offset metric will look like the following:
Environment
Beta Was this translation helpful? Give feedback.
All reactions