This requires a sub-query in order to calculate the quantile over a longer period of time.
quantile_over_time(0.95, rate(ifHCOutOctets[5m])[1d:5m])) On Sun, May 24, 2020 at 7:58 AM 李国忠 <[email protected]> wrote: > histogram_quantile(0.95,(irate(ifHCOutOctets{ifIndex=“10121”,instance=“ > 172.20.5.43”,job=“SwitchCisco”}[6m])) > > 在 2020年5月24日星期日 UTC+8上午6:43:47,FM写道: >> >> Hello, We need and We are trying to make a graph of traffic data of a >> switch cisco with 95th percentile and We can not get it, the general query >> of the port of switch is like: >> >> >> (irate(ifHCOutOctets{ifIndex=“10121”,instance=“172.20.5.43”,job=“SwitchCisco”}[6m])) >> >> How We can do the percentile 95 of the above query? >> >> Thank you >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/a3b6215a-de39-40e4-a62e-7a39d52ffa34%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/a3b6215a-de39-40e4-a62e-7a39d52ffa34%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmq3o9UiJi3bT_5bQxCSufnTEB1-W7K_Y%3DjmH-pYkFcfeA%40mail.gmail.com.

