[prometheus-users] Re: snmp_exporter 0.25.0 - IF-MIB and CISCO-IF-EXTENSION-MIB

2024-01-11 Thread 'Brian Candler' via Prometheus Users
On Thursday 11 January 2024 at 11:27:15 UTC Alexander Wilke wrote: thank you for that snippet. I could use it to solve my issue: (sysUpTime - on (instance) group_right () ifLastChange) / 100 However I need to find some time and try to better understand how these operations work. Sure. In

[prometheus-users] Re: snmp_exporter 0.25.0 - IF-MIB and CISCO-IF-EXTENSION-MIB

2024-01-11 Thread Alexander Wilke
Hello Brian, thank you for that snippet. I could use it to solve my issue: (sysUpTime - on (instance) group_right () ifLastChange) / 100 However I need to find some time and try to better understand how these operations work. PS: Is there some sort of script builder for promQL ? Brian Candler

[prometheus-users] Re: snmp_exporter 0.25.0 - IF-MIB and CISCO-IF-EXTENSION-MIB

2024-01-09 Thread 'Brian Candler' via Prometheus Users
For the first part, you should look at how ifTable and ifXTable are handled in the default generator.yml: if_mib: walk: [sysUpTime, interfaces, ifXTable] Note that you don't walk the individual columns, you walk the whole table. For the second part: (sysUpTime - on (instance)