diff --git a/agent/consul/client.go b/agent/consul/client.go index a69e76160e..4dc1f33655 100644 --- a/agent/consul/client.go +++ b/agent/consul/client.go @@ -276,6 +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.Name}}) c.routers.NotifyFailedServer(server) if retry := canRetry(args, rpcErr); !retry { return rpcErr diff --git a/website/source/docs/agent/telemetry.html.md b/website/source/docs/agent/telemetry.html.md index d0888d29e4..1f8e49020f 100644 --- a/website/source/docs/agent/telemetry.html.md +++ b/website/source/docs/agent/telemetry.html.md @@ -75,6 +75,12 @@ These metrics are used to monitor the health of specific Consul agents.