Skip to content

Commit a540637

Browse files
authored
Merge pull request #9437 from gyuho/mmm
rafthttp: add missing "peer_sent_failures_total" metrics call
2 parents 892939f + 6ef2b7b commit a540637

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
@@ -230,6 +230,7 @@ func (p *peer) send(m raftpb.Message) {
230230
plog.MergeWarningf("dropped internal raft message to %s since %s's sending buffer is full (bad/overloaded network)", p.id, name)
231231
}
232232
plog.Debugf("dropped %s to %s since %s's sending buffer is full", m.Type, p.id, name)
233+
sentFailures.WithLabelValues(types.ID(m.To).String()).Inc()
233234
}
234235
}
235236

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)