Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: track total metric for mesh inclusion/churn events #466

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 30, 2023

Motivation
We removed gossipsub_mesh_peer_inclusion_events_total and gossipsub_peer_churn_events_total in #460 but lodestar still needs it, see ChainSafe/lodestar#5919

Description
Add back these metrics

@twoeths twoeths requested a review from a team as a code owner August 30, 2023 05:28
@codecov-commenter
Copy link

Codecov Report

Patch has no changes to coverable lines.

Files Changed Coverage
src/metrics.ts 0.00%

📢 Thoughts on this report? Let us know!.

Copy link
Member

@matthewkeil matthewkeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎸

@@ -213,6 +213,11 @@ export function getMetrics(
help: 'Number of times we include peers in a topic mesh for random reasons',
labelNames: ['topic']
}),
meshPeerInclusionEventsTotal: register.gauge<{ topic: TopicLabel }>({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can rename these metrics. I think "inclusion/churn" is a bit more confusing than "add/remove"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants