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 upinvalid timeseries aggregation for range_query #4939
Comments
This comment has been minimized.
This comment has been minimized.
|
In the API code we do: Lines 1150 to 1159 in 8b91d39 This takes the string Should we round there instead? Would that be sufficient for covering all reasonable conversion cases? Is this accuracy something we should guarantee? |
This comment has been minimized.
This comment has been minimized.
|
Minimal reproduction case: https://play.golang.org/p/rhOD8UUdkwY |
juliusv
added a commit
that referenced
this issue
Dec 3, 2018
juliusv
referenced this issue
Dec 3, 2018
Merged
Better rounding for incoming query timestamps #4941
This comment has been minimized.
This comment has been minimized.
|
Here's a suggestion for how to solve this on the API layer (should cover the relevant cases): #4941 |
juliusv
closed this
in
#4941
Dec 3, 2018
juliusv
added a commit
that referenced
this issue
Dec 3, 2018
This comment has been minimized.
This comment has been minimized.
|
@dernasherbrezon Fix is merged. Btw., even before a new version is released, you could try using an rfc3339 timestamp like |
dernasherbrezon commentedDec 1, 2018
Bug Report
When I execute range_query I'm getting 1millisecond mismatch in the response.
Start is 1543578564.705. Values in the result are xxxx.704. This makes impossible to generate gaps in the sparse data.
I guess double is incorrectly rounded somewhere inside.
System information:
Darwin 18.2.0 x86_64
Prometheus version:
prometheus, version 2.5.0 (branch: HEAD, revision: 67dc912)
build user: root@578ab108d0b9
build date: 20181106-11:45:24
go version: go1.11.1