On Wednesday, 25 March 2020 00:15:53 UTC, Cameron Kerr wrote:
>
> What should the query be to give me a single value for each series 
> {vpn,ifName} that would give the 95th percentile based on the past N days?
>
>
Something like 
<https://prometheus.io/docs/prometheus/latest/querying/functions/#aggregation_over_time>
:

quantile_over_time(0.95, ...)

where ... is a range vector, so you'll want to put a subquery 
<https://prometheus.io/docs/prometheus/latest/querying/basics/#subquery> in 
there, e.g. (expr)[7d:5m] if you're thinking about the 95th percentile 
based on 5-minute samples, which is typically what people want.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8c5690ba-e5d3-4fa9-b780-e08144c43cf2%40googlegroups.com.

Reply via email to