mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 19:51:20 +00:00
Add metric for reorg count (#5819)
* Add reorg counter metric * Merge branch 'master' into reorg-metric * Merge branch 'master' into reorg-metric
This commit is contained in:
parent
edfb32021b
commit
96219fc9fa
@ -117,6 +117,8 @@ func (s *Service) saveHead(ctx context.Context, headRoot [32]byte) error {
|
||||
OldSlot: s.headSlot(),
|
||||
},
|
||||
})
|
||||
|
||||
reorgCount.Inc()
|
||||
}
|
||||
|
||||
// Cache the new head info.
|
||||
|
@ -87,6 +87,10 @@ var (
|
||||
Name: "total_voted_target_balances",
|
||||
Help: "The total amount of ether, in gwei, that is eligible for voting of previous epoch",
|
||||
})
|
||||
reorgCount = promauto.NewCounter(prometheus.CounterOpts{
|
||||
Name: "beacon_reorg_total",
|
||||
Help: "Count the number of times beacon chain has a reorg",
|
||||
})
|
||||
sentBlockPropagationHistogram = promauto.NewHistogram(
|
||||
prometheus.HistogramOpts{
|
||||
Name: "block_sent_latency_milliseconds",
|
||||
|
Loading…
Reference in New Issue
Block a user