Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus returns incorrect data with offset queries #5415
Comments
lesovsky
changed the title
promtool shows incorrect data with offset queries
Prometheus returns incorrect data with offset queries
Mar 29, 2019
This comment has been minimized.
This comment has been minimized.
|
Perhaps, it shows a right metric's value, but has a skewed timestamp. |
This comment has been minimized.
This comment has been minimized.
|
The timestamp of a instant vector result is always that of the evaluation time. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for clarification. |
lesovsky
closed this
Mar 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lesovsky commentedMar 29, 2019
Prometheus returns incorrect data when using
offsetqueriesI'm querying metrics with offset and it looks like it's not working as expected. In the example below, I executed two queries, with offset and without. Returned metrics' timestamps differ by 1 second instead of 1 hour.
Asking metrics for an interval, all work as expected. In exmaple below, I added
[1m]range to "offset query" and got two timestamps. Comparing them with timestamp returned by non-offset query shows expected 1 hour distance.Environment
System information:
Linux 4.18.0-041800-generic x86_64Prometheus version: