Closed mrueg closed 5 years ago
time="2019-05-16T12:54:26Z" level=error msg="Can't query GoBGP: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error:
" source="collect.go:49"
@mrueg , does it bring down the exporter's process?
@mrueg, ... 🤔 ...
It goes to gather metrics https://github.com/ovnworks/gobgp_exporter/blob/master/pkg/gobgp_exporter/router_node.go#L122
Hits "Unavailable" https://github.com/ovnworks/gobgp_exporter/blob/master/pkg/gobgp_exporter/collect.go#L49
Then, it looks we need to amend this code ... to account for "connection error" in the message ...
something like:
if strings.Contains(err.Error(), "connection error") {
return true
}
@mrueg , how often does this happen?
Yep it brought down the exporter process. Happened once I am aware of.
@mrueg , it is a quick fix.
Awesome, can you add what you mentioned in https://github.com/ovnworks/gobgp_exporter/issues/4#issuecomment-493555328 and tag a new release? :)
@mrueg , done!
Unfortunately gobgp_exporter sometimes seems to segfault.