Replies: 1 comment 2 replies
-
If 10ms as precision is too long for you, what don't you change it through OAL? 10ms is only a general meaningful latency, but you don't have to follow it. At the same time, less than 10ms == 10ms is very scary when ppl read metrics. The point of percentile is providing the layout of the latency, rather than an accurate number. We should not scare users. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Description
When most request response time is less than 10ms (the default oal precision is 10), the percentile p50 will be all 0, like this
, and this is obscure. I read the
PercentileMetrics
code and found thecombine
functionSo the index will be 0 when response time is less than 10(default precision is 10, oal:
service_percentile = from(Service.latency).percentile(10);
) and the index key will be multi by precision when calculate funcition calledSo, the finally P50 will be 0.
Can we change the combine function in
PercentileMetrics
, do ceiling operate when calcuate index, so the index will not be 0, like thisSo, the P50 will be 10ms, when most response time is less than 10ms and easily to understand P50 that 50% req is less than 10ms.
Use case
like above
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions