prysm-pulse/beacon-chain/sync/metrics.go
Preston Van Loon 2ee4f00b81 Add sync/p2p metric for number of messages received by topic (#3341)
* Add going msg metric

* fmt

* rename
2019-08-28 10:14:22 -05:00

19 lines
393 B
Go

package sync
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
// TODO(3147): Add metrics for RPC & subscription success/error.
var (
messageReceivedCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "p2p_message_recieved_total",
Help: "Count of messages received.",
},
[]string{"topic"},
)
)