From 6ef2b7bcee2374c7101ed1914608c06a4de5ec14 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 14 Mar 2018 11:59:17 -0400 Subject: [PATCH] rafthttp: add missing "peer_sent_failures_total" metrics call Signed-off-by: Gyuho Lee --- rafthttp/peer.go | 1 + rafthttp/remote.go | 1 + 2 files changed, 2 insertions(+) diff --git a/rafthttp/peer.go b/rafthttp/peer.go index 58b51f03494..e3093f81d1f 100644 --- a/rafthttp/peer.go +++ b/rafthttp/peer.go @@ -230,6 +230,7 @@ func (p *peer) send(m raftpb.Message) { plog.MergeWarningf("dropped internal raft message to %s since %s's sending buffer is full (bad/overloaded network)", p.id, name) } plog.Debugf("dropped %s to %s since %s's sending buffer is full", m.Type, p.id, name) + sentFailures.WithLabelValues(types.ID(m.To).String()).Inc() } } diff --git a/rafthttp/remote.go b/rafthttp/remote.go index c62c818235a..f7f9d2ceb53 100644 --- a/rafthttp/remote.go +++ b/rafthttp/remote.go @@ -53,6 +53,7 @@ func (g *remote) send(m raftpb.Message) { plog.MergeWarningf("dropped internal raft message to %s since sending buffer is full (bad/overloaded network)", g.id) } plog.Debugf("dropped %s to %s since sending buffer is full", m.Type, g.id) + sentFailures.WithLabelValues(types.ID(m.To).String()).Inc() } }