Understanding Percentiles (2021)
blog.shalvah.me
blog.shalvah.me
data series: index -> value
integrate to cdf: value -> density
invert monotonic: density -> valueWe need an efficient way to compactly represent the entire distribution of a metric over time so arbitrary aggregations can be performed accurately. There is some research on this topic, but nothing really production-ready that I'm aware of.
Here are some:
https://prometheus.io/docs/practices/histograms/ (Victoria Metrics is also worth looking at, IIRC they store quantiles differently)
Disclaimer: I work there/built the TypeScript implementation of the library