mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
|
package slashings
|
||
|
|
||
|
import (
|
||
|
"github.com/prometheus/client_golang/prometheus"
|
||
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
numPendingAttesterSlashings = promauto.NewGauge(
|
||
|
prometheus.GaugeOpts{
|
||
|
Name: "num_pending_attester_slashings",
|
||
|
Help: "Number of pending attester slashings in the pool",
|
||
|
},
|
||
|
)
|
||
|
numAttesterSlashingsIncluded = promauto.NewCounter(
|
||
|
prometheus.CounterOpts{
|
||
|
Name: "attester_slashings_included_total",
|
||
|
Help: "Number of attester slashings included in blocks",
|
||
|
},
|
||
|
)
|
||
|
attesterSlashingReattempts = promauto.NewCounter(
|
||
|
prometheus.CounterOpts{
|
||
|
Name: "attester_slashing_reattempts_total",
|
||
|
Help: "Times an attester slashing for an already slashed validator is received",
|
||
|
},
|
||
|
)
|
||
|
numPendingProposerSlashings = promauto.NewGauge(
|
||
|
prometheus.GaugeOpts{
|
||
|
Name: "num_pending_proposer_slashings",
|
||
|
Help: "Number of pending proposer slashings in the pool",
|
||
|
},
|
||
|
)
|
||
|
numProposerSlashingsIncluded = promauto.NewCounter(
|
||
|
prometheus.CounterOpts{
|
||
|
Name: "proposer_slashings_included_total",
|
||
|
Help: "Number of proposer slashings included in blocks",
|
||
|
},
|
||
|
)
|
||
|
proposerSlashingReattempts = promauto.NewCounter(
|
||
|
prometheus.CounterOpts{
|
||
|
Name: "proposer_slashing_reattempts_total",
|
||
|
Help: "Times a proposer slashing for an already slashed validator is received",
|
||
|
},
|
||
|
)
|
||
|
)
|