Commit 73d6bf20 authored by Shashank Sahni's avatar Shashank Sahni Committed by Brian Brazil

Correcting bucket for 95th percentile (#637)

With most requests at 220ms, the true histogram should return 200-300ms
bucket for 95th percentile.
parent 8f06eef0
...@@ -154,7 +154,7 @@ sharp spike at 220ms. In the Prometheus histogram metric as configured ...@@ -154,7 +154,7 @@ sharp spike at 220ms. In the Prometheus histogram metric as configured
above, almost all observations, and therefore also the 95th percentile, above, almost all observations, and therefore also the 95th percentile,
will fall into the bucket labeled `{le="0.3"}`, i.e. the bucket from will fall into the bucket labeled `{le="0.3"}`, i.e. the bucket from
200ms to 300ms. The histogram implementation guarantees that the true 200ms to 300ms. The histogram implementation guarantees that the true
95th percentile is somewhere between 100ms and 200ms. To return a 95th percentile is somewhere between 200ms and 300ms. To return a
single value (rather than an interval), it applies linear single value (rather than an interval), it applies linear
interpolation, which yields 295ms in this case. The calculated interpolation, which yields 295ms in this case. The calculated
quantile gives you the impression that you are close to breaking the quantile gives you the impression that you are close to breaking the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment