Skip to content

Commit

Permalink
introduces the channel ID as a label to total bytes sent and received
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 5, 2023
1 parent 9e02fe1 commit 8ef8b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics {
Subsystem: MetricsSubsystem,
Name: "message_receive_bytes_total",
Help: "Number of bytes of each message type received.",
}, append(labels, "message_type")).With(labelsAndValues...),
}, append(labels, "message_type", "chID")).With(labelsAndValues...),
MessageSendBytesTotal: prometheus.NewCounterFrom(stdprometheus.CounterOpts{
Namespace: namespace,
Subsystem: MetricsSubsystem,
Name: "message_send_bytes_total",
Help: "Number of bytes of each message type sent.",
}, append(labels, "message_type")).With(labelsAndValues...),
}, append(labels, "message_type", "chID")).With(labelsAndValues...),
}
}

Expand Down

0 comments on commit 8ef8b12

Please sign in to comment.