Skip to content

Commit

Permalink
Merge pull request #9437 from gyuho/mmm
Browse files Browse the repository at this point in the history
rafthttp: add missing "peer_sent_failures_total" metrics call
  • Loading branch information
gyuho authored Mar 14, 2018
2 parents 892939f + 6ef2b7b commit a540637
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 a540637

Please sign in to comment.