Hi There
I’m using Prometheus’ snmp_exporter to get metrics of my switches. I want to graph different interface metrics and rely on the ifIndex
for graphing.
$Device query_result(sum by (instance)(ifDescr{job="snmp"}))
$Index query_result(sum by (ifIndex)(ifDescr{job="snmp",instance="$Device"}))
I use repeating rows and repeat $Index.
$Index
is not easily recognisable hence I want to also make use of the ifDescr
and ifAlias
$Interface query_result(sum by (ifIndex) (ifDescr{job="snmp",instance="$Device",ifIndex="$Index"}))
$Alias query_result(sum by (ifAlias) (ifAlias{job="snmp",instance="$Device",ifIndex="$Index"}))
I have include All
checked for $Index
to get all interfaces but then $Interface
and $Alias
are None.
Only if I select a specific $Index
, $Interface
and $Alias
get propagated.
How can I overcome this behaviour to display $Interface
and $Alias
?
Many Thanks,
Chris