Skip to content

Commit

Permalink
remove duplicate metric reporting in cluster_info_stats3 (solana-labs…
Browse files Browse the repository at this point in the history
…#32566)

process_gossip_packets_iterations_since_last_report measures the same loop count as gossip_listen_loop_iterations_since_last_report which already exists
  • Loading branch information
Greg Cusack authored Jul 24, 2023
1 parent 17af3ab commit cd7f03b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2515,9 +2515,6 @@ impl ClusterInfo {
stakes,
response_sender,
);
self.stats
.process_gossip_packets_iterations_since_last_report
.add_relaxed(1);
Ok(())
}

Expand Down
8 changes: 0 additions & 8 deletions gossip/src/cluster_info_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ pub struct GossipStats {
pub(crate) packets_sent_pull_requests_count: Counter,
pub(crate) packets_sent_pull_responses_count: Counter,
pub(crate) packets_sent_push_messages_count: Counter,
pub(crate) process_gossip_packets_iterations_since_last_report: Counter,
pub(crate) process_gossip_packets_time: Counter,
pub(crate) process_prune: Counter,
pub(crate) process_pull_requests: Counter,
Expand Down Expand Up @@ -411,13 +410,6 @@ pub(crate) fn submit_gossip_stats(
.clear(),
i64
),
(
"process_gossip_packets_iterations_since_last_report",
stats
.process_gossip_packets_iterations_since_last_report
.clear(),
i64
),
);
datapoint_info!(
"cluster_info_stats4",
Expand Down

0 comments on commit cd7f03b

Please sign in to comment.