prysm-pulse/beacon-chain/sync/metrics.go

37 lines
957 B
Go
Raw Normal View History

package sync
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
messageReceivedCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
2019-09-29 18:48:55 +00:00
Name: "p2p_message_received_total",
Help: "Count of messages received.",
},
[]string{"topic"},
)
2019-09-30 05:23:19 +00:00
messageFailedValidationCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "p2p_message_failed_validation_total",
Help: "Count of messages that failed validation.",
},
[]string{"topic"},
)
messageFailedProcessingCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "p2p_message_failed_processing_total",
Help: "Count of messages that passed validation but failed processing.",
},
[]string{"topic"},
)
numberOfTimesResyncedCounter = promauto.NewCounter(
prometheus.CounterOpts{
Name: "number_of_times_resynced",
Help: "Count the number of times a node resyncs.",
},
)
)