Percentile 95th Switch cisco with Prometheus

44 views
Skip to first unread message

FM

unread,
May 23, 2020, 6:43:47 PM5/23/20
to Prometheus Users
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

李国忠

unread,
May 24, 2020, 1:58:29 AM5/24/20
to Prometheus Users

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写道:

Ben Kochie

unread,
May 24, 2020, 11:31:39 AM5/24/20
to 李国忠, Prometheus Users
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]))

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a3b6215a-de39-40e4-a62e-7a39d52ffa34%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages