mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 22:27:17 +00:00
26 lines
627 B
Go
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"},
|
|
)
|
|
)
|