prysm-pulse/beacon-chain/sync/metrics.go
2019-09-17 14:14:51 -07:00

26 lines
627 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"},
)
messageReceivedBeforeChainStartCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "p2p_message_recieved_before_chain_start",
Help: "Count of messages received before chain started.",
},
[]string{"topic"},
)
)