Skip to content

Commit

Permalink
fixup: remove label from RPC fail due to no servers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkirschner-hashicorp authored Nov 29, 2023
1 parent 06507fe commit 14e1605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ TRY:
retryCount++
manager, server := c.router.FindLANRoute()
if server == nil {
metrics.IncrCounterWithLabels([]string{"client", "rpc", "failed"}, 1, []metrics.Label{{Name: "server", Value: "nil"}})
metrics.IncrCounter([]string{"client", "rpc", "failed"}, 1)
return structs.ErrNoServers
}

Expand Down

0 comments on commit 14e1605

Please sign in to comment.