junos_exporter icon indicating copy to clipboard operation
junos_exporter copied to clipboard

feature request: return bgp session_status instead of session_up

Open 33Fraise33 opened this issue 2 years ago • 0 comments

Hello,

I am trying to set alerting rules for our datacenter coreswitches with this exporter. i was planning to use junos_bgp_session_up but this is 1 if up and 0 if everything else. This unfortunately does also show as "failed" when the session is in admin down.

The proposal is to create a new metric called junos_bgp_session_state which then return values for the possible states (idle, active, established, shutdown).

Another option is to create an entry like exists for interfaces: junos_bgp_session_error_status which then returns 1 if operational and admin state differ.

33Fraise33 avatar Apr 17 '23 13:04 33Fraise33