From 4d3a6d84d241ba492411bc92e6016227445afe2a Mon Sep 17 00:00:00 2001 From: terence Date: Tue, 12 Mar 2024 18:41:47 -1000 Subject: [PATCH] Add gossip blob sidecar verification ms metric (#13737) --- beacon-chain/sync/metrics.go | 6 ++++++ beacon-chain/sync/validate_blob.go | 1 + 2 files changed, 7 insertions(+) diff --git a/beacon-chain/sync/metrics.go b/beacon-chain/sync/metrics.go index 7f33abe6d116..9993394812fc 100644 --- a/beacon-chain/sync/metrics.go +++ b/beacon-chain/sync/metrics.go @@ -144,6 +144,12 @@ var ( Help: "Time for gossiped blob sidecars to arrive", }, ) + blobSidecarVerificationGossipSummary = promauto.NewSummary( + prometheus.SummaryOpts{ + Name: "gossip_blob_sidecar_verification_milliseconds", + Help: "Time to verify gossiped blob sidecars", + }, + ) // Sync committee verification performance. syncMessagesForUnknownBlocks = promauto.NewCounter( diff --git a/beacon-chain/sync/validate_blob.go b/beacon-chain/sync/validate_blob.go index d23c9b85d13a..72bb6591e2fa 100644 --- a/beacon-chain/sync/validate_blob.go +++ b/beacon-chain/sync/validate_blob.go @@ -127,6 +127,7 @@ func (s *Service) validateBlob(ctx context.Context, pid peer.ID, msg *pubsub.Mes fields["validationTime"] = s.cfg.clock.Now().Sub(receivedTime) log.WithFields(fields).Debug("Received blob sidecar gossip") + blobSidecarVerificationGossipSummary.Observe(float64(sinceSlotStartTime.Milliseconds())) blobSidecarArrivalGossipSummary.Observe(float64(sinceSlotStartTime.Milliseconds())) vBlobData, err := vf.VerifiedROBlob()