From dfc3b3714a1a36c2882e42005533fc30c22340e0 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Tue, 19 Dec 2023 04:04:57 +1100 Subject: [PATCH] Fix incorrect blob queue metrics (#5014) * Fix blob queue metrics. * Update blob metric description --- beacon_node/beacon_processor/src/lib.rs | 4 ++-- beacon_node/beacon_processor/src/metrics.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/beacon_processor/src/lib.rs b/beacon_node/beacon_processor/src/lib.rs index 1c675d280..79b46f90a 100644 --- a/beacon_node/beacon_processor/src/lib.rs +++ b/beacon_node/beacon_processor/src/lib.rs @@ -106,7 +106,7 @@ const MAX_AGGREGATED_ATTESTATION_REPROCESS_QUEUE_LEN: usize = 1_024; /// before we start dropping them. const MAX_GOSSIP_BLOCK_QUEUE_LEN: usize = 1_024; -/// The maximum number of queued `SignedBlobSidecar` objects received on gossip that +/// The maximum number of queued `BlobSidecar` objects received on gossip that /// will be stored before we start dropping them. const MAX_GOSSIP_BLOB_QUEUE_LEN: usize = 1_024; @@ -1304,7 +1304,7 @@ impl BeaconProcessor { ); metrics::set_gauge( &metrics::BEACON_PROCESSOR_GOSSIP_BLOB_QUEUE_TOTAL, - gossip_block_queue.len() as i64, + gossip_blob_queue.len() as i64, ); metrics::set_gauge( &metrics::BEACON_PROCESSOR_RPC_BLOCK_QUEUE_TOTAL, diff --git a/beacon_node/beacon_processor/src/metrics.rs b/beacon_node/beacon_processor/src/metrics.rs index 9082a7d47..fa7d7d7b9 100644 --- a/beacon_node/beacon_processor/src/metrics.rs +++ b/beacon_node/beacon_processor/src/metrics.rs @@ -49,7 +49,7 @@ lazy_static::lazy_static! { // Gossip blobs. pub static ref BEACON_PROCESSOR_GOSSIP_BLOB_QUEUE_TOTAL: Result = try_create_int_gauge( "beacon_processor_gossip_blob_queue_total", - "Count of blocks from gossip waiting to be verified." + "Count of blobs from gossip waiting to be verified." ); // Gossip Exits. pub static ref BEACON_PROCESSOR_EXIT_QUEUE_TOTAL: Result = try_create_int_gauge(