Skip to content

Commit 1a5bdbb

Browse files
committed
rafthttp: add missing "sentFailures" metrics
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
1 parent 892939f commit 1a5bdbb

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)