mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
22 lines
669 B
Go
22 lines
669 B
Go
|
package detection
|
||
|
|
||
|
import (
|
||
|
"github.com/prometheus/client_golang/prometheus"
|
||
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
doubleVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
|
||
|
Name: "double_votes_detected_total",
|
||
|
Help: "The # of double vote slashable events detected",
|
||
|
})
|
||
|
surroundingVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
|
||
|
Name: "surrounding_votes_detected_total",
|
||
|
Help: "The # of surrounding slashable events detected",
|
||
|
})
|
||
|
surroundedVotesDetected = promauto.NewCounter(prometheus.CounterOpts{
|
||
|
Name: "surrounded_votes_detected_total",
|
||
|
Help: "The # of surrounded slashable events detected",
|
||
|
})
|
||
|
)
|