prysm-pulse/slasher/detection/metrics.go
Raul Jordan 8d3fc1ad3e
Add in Slasher Metrics (#5060)
* added in slasher metrics
* Merge branch 'master' into slasher-metrics
* add in prom bolt metrics for slasher
* Merge branch 'slasher-metrics' of github.com:prysmaticlabs/prysm into slasher-metrics
* imports
* include all metrics
* no dup bolt collector
* Update slasher/detection/attestations/spanner.go

Co-Authored-By: Ivan Martinez <ivanthegreatdev@gmail.com>
* naming best practices for prom, thx Terence
* Merge branch 'slasher-metrics' of github.com:prysmaticlabs/prysm into slasher-metrics
2020-03-10 19:41:55 +00:00

26 lines
848 B
Go

package detection
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
doubleProposalsDetected = promauto.NewCounter(prometheus.CounterOpts{
Name: "double_proposals_detected_total",
Help: "The # of double propose slashable events detected",
})
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",
})
)