Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: return bgp session_status instead of session_up #209

Open
33Fraise33 opened this issue Apr 17, 2023 · 0 comments
Open

feature request: return bgp session_status instead of session_up #209

33Fraise33 opened this issue Apr 17, 2023 · 0 comments

Comments

@33Fraise33
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant