github.com/prysmaticlabs/prysm@v1.4.4/slasher/detection/metrics.go (about)

     1  package detection
     2  
     3  import (
     4  	"github.com/prometheus/client_golang/prometheus"
     5  	"github.com/prometheus/client_golang/prometheus/promauto"
     6  )
     7  
     8  var (
     9  	doubleVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
    10  		Name: "double_votes_detected_total",
    11  		Help: "The # of double vote slashable events detected",
    12  	})
    13  	surroundingVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
    14  		Name: "surrounding_votes_detected_total",
    15  		Help: "The # of surrounding slashable events detected",
    16  	})
    17  	surroundedVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
    18  		Name: "surrounded_votes_detected_total",
    19  		Help: "The # of surrounded slashable events detected",
    20  	})
    21  )