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

feat: add switch interface BGP established metric #18

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mwennrich
Copy link
Contributor

@mwennrich mwennrich commented Nov 26, 2024

adds metal_switch_interface_bgp_established metric

# HELP metal_switch_interface_bgp_established_timestamp Provide the unix timestamp since BGP is established on the interfaces (0 if not established)
# TYPE metal_switch_interface_bgp_established_timestamp gauge
metal_switch_interface_bgp_established_timestamp{device="Ethernet0",machineid="00000000-0000-0000-0000-ac1f6b7d7efa",partition="fra-equ01",switchname="fra-equ01-r02leaf01"} 1.730715363e+09
metal_switch_interface_bgp_established_timestamp{device="Ethernet0",machineid="00000000-0000-0000-0000-ac1f6b7d7efa",partition="fra-equ01",switchname="fra-equ01-r02leaf02"} 1.730715441e+09
metal_switch_interface_bgp_established_timestamp{device="Ethernet1",machineid="00000000-0000-0000-0000-ac1f6b7d7e32",partition="fra-equ01",switchname="fra-equ01-r02leaf01"} 1.730715363e+09
metal_switch_interface_bgp_established_timestamp{device="Ethernet1",machineid="00000000-0000-0000-0000-ac1f6b7d7e32",partition="fra-equ01",switchname="fra-equ01-r02leaf02"} 1.730715441e+09
metal_switch_interface_bgp_established_timestamp{device="Ethernet2",machineid="00000000-0000-0000-0000-ac1f6b7d7dc6",partition="fra-equ01",switchname="fra-equ01-r02leaf01"} 0
metal_switch_interface_bgp_established_timestamp{device="Ethernet2",machineid="00000000-0000-0000-0000-ac1f6b7d7dc6",partition="fra-equ01",switchname="fra-equ01-r02leaf02"} 1.731591734e+09

References

References:

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

Successfully merging this pull request may close these issues.

1 participant