mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
f77049ae74
* Fmt * Starting * Cont * Store aggregate attestation is better * Conflict * Done * Merge branch 'master' of git+ssh://github.com/prysmaticlabs/prysm into process-pending-atts * Comment * Better logs * Better logs * Fix existing tests * Update metric names * Preston's feedback * Broadcast atts once it's valid * Gazelle * Test for validating atts and pruning * Tests * Removed debug log * Conflict * Feedback * Merge refs/heads/master into process-pending-atts * Merge refs/heads/master into process-pending-atts
61 lines
1.9 KiB
Go
61 lines
1.9 KiB
Go
package sync
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
messageReceivedCounter = promauto.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Name: "p2p_message_received_total",
|
|
Help: "Count of messages received.",
|
|
},
|
|
[]string{"topic"},
|
|
)
|
|
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.",
|
|
},
|
|
)
|
|
numberOfBlocksRecoveredFromAtt = promauto.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Name: "beacon_blocks_recovered_from_attestation_total",
|
|
Help: "Count the number of times a missing block recovered from attestation vote.",
|
|
},
|
|
)
|
|
numberOfBlocksNotRecoveredFromAtt = promauto.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Name: "beacon_blocks_not_recovered_from_attestation_total",
|
|
Help: "Count the number of times a missing block not recovered and pruned from attestation vote.",
|
|
},
|
|
)
|
|
numberOfAttsRecovered = promauto.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Name: "beacon_attestations_recovered_total",
|
|
Help: "Count the number of times attestation recovered because of missing block",
|
|
},
|
|
)
|
|
numberOfAttsNotRecovered = promauto.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Name: "beacon_attestations_not_recovered_total",
|
|
Help: "Count the number of times attestation not recovered and pruned because of missing block",
|
|
},
|
|
)
|
|
)
|