Revert "Metrics for eas" (#16043)

Reverts OffchainLabs/prysm#16008
This commit is contained in:
satushh
2025-11-24 13:12:30 -03:00
committed by GitHub
parent 11bb8542a4
commit 768fa0e5a1
3 changed files with 4 additions and 19 deletions

View File

@@ -80,17 +80,10 @@ func (s *Service) updateCustodyInfoIfNeeded() error {
return errors.Wrap(err, "p2p update custody info")
}
// Update the p2p earliest available slot metric
earliestAvailableSlotP2P.Set(float64(storedEarliestSlot))
dbEarliestSlot, _, err := s.cfg.beaconDB.UpdateCustodyInfo(s.ctx, storedEarliestSlot, storedGroupCount)
if err != nil {
if _, _, err := s.cfg.beaconDB.UpdateCustodyInfo(s.ctx, storedEarliestSlot, storedGroupCount); err != nil {
return errors.Wrap(err, "beacon db update custody info")
}
// Update the DB earliest available slot metric
earliestAvailableSlotDB.Set(float64(dbEarliestSlot))
return nil
}

View File

@@ -236,17 +236,6 @@ var (
Buckets: []float64{100, 250, 500, 750, 1000, 1500, 2000, 4000, 8000, 12000, 16000},
},
)
// Custody earliest available slot metrics
earliestAvailableSlotP2P = promauto.NewGauge(prometheus.GaugeOpts{
Name: "custody_earliest_available_slot_p2p",
Help: "The earliest available slot tracked by the p2p service for custody purposes",
})
earliestAvailableSlotDB = promauto.NewGauge(prometheus.GaugeOpts{
Name: "custody_earliest_available_slot_db",
Help: "The earliest available slot tracked by the database for custody purposes",
})
)
func (s *Service) updateMetrics() {

View File

@@ -0,0 +1,3 @@
### Removed
- Reverted the eas metric as it currently has a bug. Will be fixed later.