diff --git a/agent/consul/client.go b/agent/consul/client.go index e90daec37..f5aa434ee 100644 --- a/agent/consul/client.go +++ b/agent/consul/client.go @@ -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.IncrCounter([]string{"client", "rpc", "failed"}, 1) + metrics.IncrCounterWithLabels([]string{"client", "rpc", "failed"}, 1, []metrics.Label{{Name: "server", Value: server.ID}}) c.routers.NotifyFailedServer(server) if retry := canRetry(args, rpcErr); !retry { return rpcErr