Skip to content

Commit 4acfe50

Browse files
authored
Merge pull request #9503 from jpbetz/automated-cherry-pick-of-#9437-release-3.2
Automated cherry pick of #9437
2 parents 39ea00b + 0a45603 commit 4acfe50

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rafthttp/peer.go

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ func (p *peer) send(m raftpb.Message) {
225225
plog.MergeWarningf("dropped internal raft message to %s since %s's sending buffer is full (bad/overloaded network)", p.id, name)
226226
}
227227
plog.Debugf("dropped %s to %s since %s's sending buffer is full", m.Type, p.id, name)
228+
sentFailures.WithLabelValues(types.ID(m.To).String()).Inc()
228229
}
229230
}
230231

rafthttp/remote.go

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (g *remote) send(m raftpb.Message) {
5353
plog.MergeWarningf("dropped internal raft message to %s since sending buffer is full (bad/overloaded network)", g.id)
5454
}
5555
plog.Debugf("dropped %s to %s since sending buffer is full", m.Type, g.id)
56+
sentFailures.WithLabelValues(types.ID(m.To).String()).Inc()
5657
}
5758
}
5859

0 commit comments

Comments
 (0)