Skip to content

Commit

Permalink
rafthttp: add missing "sentFailures" metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Mar 14, 2018
1 parent 892939f commit 1a5bdbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rafthttp/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down
1 change: 1 addition & 0 deletions rafthttp/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 1a5bdbb

Please sign in to comment.