This patch adds bgp state metrics as follows: http://XXX:9324/metrics bird_bgp_state{name="uplink0",proto="BGP",state="Active"} 1 bird_bgp_state{name="uplink1",proto="BGP",state="Idle"} 1
7 lines
71 B
Go
7 lines
71 B
Go
package protocol
|
|
|
|
type BgpState struct {
|
|
Name string
|
|
State string
|
|
}
|