I am trying to use Prometheus snmp_exporter to gather metrics for Cisco switches and use Grafana repeated panels for displaying. the Grafana works magically well. However, I have difficulity to assign the title automatically on each panel based on the interface.
Sample of Prometheus data:
ifDescr{ifDescr="GigabitEthernet1/0/12",ifIndex="10112"} 1
ifDescr{ifDescr="GigabitEthernet1/0/13",ifIndex="10113"} 1
...
ifHCInOctets{ifIndex="10112"} 1.03615731929e+11
ifHCInOctets{ifIndex="10113"} 2.644180651e+09
Since all metrics are referenced with ifIndex, I managed to irate the rows by ifIndex. However, the title doesn't change along with the ifIndex. Please find the screenshot for your information:
Please anyone could ignite me about how to change title automatically along with the metric? Thanks!