github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/operations/slashings/metrics.go (about)

     1  package slashings
     2  
     3  import (
     4  	"github.com/prometheus/client_golang/prometheus"
     5  	"github.com/prometheus/client_golang/prometheus/promauto"
     6  )
     7  
     8  var (
     9  	numPendingAttesterSlashings = promauto.NewGauge(
    10  		prometheus.GaugeOpts{
    11  			Name: "num_pending_attester_slashings",
    12  			Help: "Number of pending attester slashings in the pool",
    13  		},
    14  	)
    15  	numAttesterSlashingsIncluded = promauto.NewCounter(
    16  		prometheus.CounterOpts{
    17  			Name: "attester_slashings_included_total",
    18  			Help: "Number of attester slashings included in blocks",
    19  		},
    20  	)
    21  	numPendingProposerSlashings = promauto.NewGauge(
    22  		prometheus.GaugeOpts{
    23  			Name: "num_pending_proposer_slashings",
    24  			Help: "Number of pending proposer slashings in the pool",
    25  		},
    26  	)
    27  	numProposerSlashingsIncluded = promauto.NewCounter(
    28  		prometheus.CounterOpts{
    29  			Name: "proposer_slashings_included_total",
    30  			Help: "Number of proposer slashings included in blocks",
    31  		},
    32  	)
    33  )