bird_exporter/protocol/bgp_state.go
zhanghao b09cde3210 Add bgp state metrics
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
2021-07-02 05:14:30 -04:00

7 lines
71 B
Go

package protocol
type BgpState struct {
Name string
State string
}