Attach server.Name label to client.rpc.failed
This commit is contained in:
parent
bda575074e
commit
3ed73961b3
|
@ -276,7 +276,7 @@ TRY:
|
|||
|
||||
// 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)
|
||||
metrics.IncrCounterWithLabels([]string{"client", "rpc", "failed"}, 1, []metrics.Label{{Name: "server", Value: server.ID}})
|
||||
metrics.IncrCounterWithLabels([]string{"client", "rpc", "failed"}, 1, []metrics.Label{{Name: "server", Value: server.Name}})
|
||||
c.routers.NotifyFailedServer(server)
|
||||
if retry := canRetry(args, rpcErr); !retry {
|
||||
return rpcErr
|
||||
|
|
Loading…
Reference in New Issue