Investigating a latency regression with Prometheus

Mean latency can hide slow tail requests.

Problem

Mean latency can hide slow tail requests.

Cause

Mixing /slow requests with normal requests changes the distribution in the lab.

Solution

Compare P95 and P99 against the mean. Compare end-to-end latency with external service latency separately. Account for histogram bucket approximations.

View solution source on GitHub