mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 01:43:43 +00:00
Attach server.ID label to client.rpc.failed
This commit is contained in:
parent
e85e63c18c
commit
3d230dee80
@ -276,7 +276,7 @@ TRY:
|
|||||||
|
|
||||||
// Move off to another server, and see if we can retry.
|
// Move off to another server, and see if we can retry.
|
||||||
c.logger.Printf("[ERR] consul: %q RPC failed to server %s: %v", method, server.Addr, rpcErr)
|
c.logger.Printf("[ERR] consul: %q RPC failed to server %s: %v", method, server.Addr, rpcErr)
|
||||||
metrics.IncrCounter([]string{"client", "rpc", "failed"}, 1)
|
metrics.IncrCounterWithLabels([]string{"client", "rpc", "failed"}, 1, []metrics.Label{{Name: "server", Value: server.ID}})
|
||||||
c.routers.NotifyFailedServer(server)
|
c.routers.NotifyFailedServer(server)
|
||||||
if retry := canRetry(args, rpcErr); !retry {
|
if retry := canRetry(args, rpcErr); !retry {
|
||||||
return rpcErr
|
return rpcErr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user