mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
Client: add metric for failed RPC calls to server
This commit is contained in:
parent
6e9cbeecd0
commit
e85e63c18c
@ -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.IncrCounter([]string{"client", "rpc", "failed"}, 1)
|
||||
c.routers.NotifyFailedServer(server)
|
||||
if retry := canRetry(args, rpcErr); !retry {
|
||||
return rpcErr
|
||||
|
@ -75,6 +75,12 @@ These metrics are used to monitor the health of specific Consul agents.
|
||||
<td>rejected requests</td>
|
||||
<td>counter</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>`consul.client.rpc.failed`</td>
|
||||
<td>This increments whenever a Consul agent in client mode makes an RPC request to a Consul server and fails.</td>
|
||||
<td>requests</td>
|
||||
<td>counter</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>`consul.client.api.catalog_register.<node>`</td>
|
||||
<td>This increments whenever a Consul agent receives a catalog register request.</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user