mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
8d3fc1ad3e
* 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
26 lines
848 B
Go
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",
|
|
})
|
|
)
|