mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-20 06:06:15 +00:00
Fix metric cardinality left over from backport (#7180)
One of the patched uses in #7161 missed the message type field, triggering panic failures from Prometheus.
This commit is contained in:
@@ -261,6 +261,7 @@ func (p *peer) Send(chID byte, msgBytes []byte) bool {
|
||||
labels := []string{
|
||||
"peer_id", string(p.ID()),
|
||||
"chID", fmt.Sprintf("%#x", chID),
|
||||
"message_type", "bytes",
|
||||
}
|
||||
p.metrics.PeerSendBytesTotal.With(labels...).Add(float64(len(msgBytes)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user