Skip to content

Commit 2832bc2

Browse files
authored
Merge pull request #9501 from jpbetz/automated-cherry-pick-of-#9437-release-3.1
Automated cherry pick of #9437
2 parents 98e390f + 8f0eea5 commit 2832bc2

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)