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 upInterpolation of integers (in UI and storage) should be optional #570
Comments
This comment has been minimized.
This comment has been minimized.
|
This interpolation is in the /query_range endpoint, and we've discussed having an endpoint that doesn't do interpolation (though it can't evaluate expressions then either). If you're using the console templates and associated graph library, you can configure how you want to values rendered such as the |
This comment has been minimized.
This comment has been minimized.
|
Yeah, what's important to understand is that values are stored exactly as they are exposed, and only interpolated when doing a query. The historical reason for this was that to support aggregations like |
This comment has been minimized.
This comment has been minimized.
|
Should we file an issue about the non-interpolation endpoint? I'd be strongly opposed to "interpolation of integers only to integers". That would mathematically make no sense. The expectation value has nothing to do with the most likely value. (The expectation value of rolling a die is 3.5, although a die will never ever actual give you 3.5 as a result. That doesn't make 4 the better expectation value.) |
juliusv
referenced this issue
Mar 2, 2015
Closed
Allow turning off value and timestamp interpolation for non-aggregated queries #571
This comment has been minimized.
This comment has been minimized.
|
There's even a problem for non-aggregated time series though: the graphing libraries expect series to be time-aligned, especially for features such as stacking a graph. We'd have to experiment with that. I filed #571 |
This comment has been minimized.
This comment has been minimized.
|
Closing this in favor of #571 |
juliusv
closed this
Mar 2, 2015
This comment has been minimized.
This comment has been minimized.
|
@niko I think we neglected the last part of your suggestion though: offering controls over rounding in PromDash or the query language. Perhaps file another ticket in https://github.com/prometheus/promdash if you feel that's still missing? Just in case it already helps, you can round values via the |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the fast reply. Makes completely sense when I think about it. Will try round() et.all. Thanks for the great project in general. I love it! :) |
This comment has been minimized.
This comment has been minimized.
|
Excellent, thanks! :) On Mon, Mar 2, 2015 at 4:18 PM, Niko Dittmann notifications@github.com
|
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
niko commentedMar 2, 2015
It feels weird when integers get interpolated. In our case we're monitoring listeners on a streaming server and "5203.167466666667 listeners" just feels plain wrong. IMHO either the interpolation should be somewhat clever and round floats to ints if the input is always ints or it should be optional in the js consoles library and the backend storage.