Problem: Compute the 90% quantile of a numeric duration metric over the last hour.


Solution:


    metric:average(<>,<>) | window:percentile(1h, 90)

 

How it looks:

 


Note that the windows seem 1h delayed behind the actual data. This is because the quantiles are computed over the last fully completed window.