BRILLIANT!thnx Brian! And thnx also for the blog, btw.
The promql seems to be quite powerful but the available documentation rather thin,so your blog helps a lot.(Might be time for an PocketReference/ShortCut ;-)
On Friday, October 20, 2017 at 11:40:20 AM UTC+2, Brian Brazil wrote:On 20 October 2017 at 09:48, <robu...@gmail.com> wrote:hiI would like to monitor my switches with prometheus.while the snmp_exporter works fine and I get my data with a query likeirate(ifInOctets{instance="my.switch.test", ifIndex=~"[1-9][0-9]?"}[5m])I can't figure out how to get the fields ifDescr or ifAlias into the legend in grafana.It would be most useful if one could see on first glance which interface produces this spike, or has the highest rate,without having to have a translation table somewhere to lookup the ifAlias for this ifIndex.How can I get ifDescr/ifAlias in the legend? (if it is possible at all)You need to use group_left to add in the label, so irate(...) * ignoring(ifAlias) group_left(ifAlias) ifAliasThis is the same technique as https://www.robustperception.io/exposing-the-software-version-to-prometheus/--Brian Brazil
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d06f80bd-290f-431d-8c14-6b268aea3e74%40googlegroups.com.
On 20 October 2017 at 11:31, <robu...@gmail.com> wrote:BRILLIANT!thnx Brian! And thnx also for the blog, btw.
The promql seems to be quite powerful but the available documentation rather thin,so your blog helps a lot.(Might be time for an PocketReference/ShortCut ;-)Brian
--Brian Brazil
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/abd3c84c-62bc-4436-8d78-e8823c30cd45%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmqqZoTbAC-rsGp3qDxrRiPiTAVJ1S%3D93ZAhVHFEik99OQ%40mail.gmail.com.