prysm-pulse/beacon-chain/db/slasherkv/metrics.go
Raul Jordan 8cda50f179
Optimized Slasher Database Methods (#8805)
* slasher kv additions

* gaz

* pass tests
2021-04-23 12:06:13 -05:00

18 lines
517 B
Go

package slasherkv
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
slasherAttestationsPrunedTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "slasher_attestations_pruned_total",
Help: "Total number of old attestations pruned by slasher",
})
slasherProposalsPrunedTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "slasher_proposals_pruned_total",
Help: "Total number of old proposals pruned by slasher",
})
)