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

Add sdk gossip handler metrics #1997

Merged
merged 7 commits into from
Sep 11, 2023
Merged

Add sdk gossip handler metrics #1997

merged 7 commits into from
Sep 11, 2023

Conversation

joshua-kim
Copy link
Contributor

Why this should be merged

adds metrics to gossip package

How this works

adds metrics

How this was tested

n/a

@@ -34,20 +36,42 @@ func NewGossiper[T any, U GossipableAny[T]](
log logging.Logger,
set Set[U],
client *p2p.Client,
) *Gossiper[T, U] {
return &Gossiper[T, U]{
metrics prometheus.Registerer,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making sure people are fine w/ this as our signature. Avalanchego's context exposes a MultiGatherer so we'd be expected to register a prometheus.NewRegistry into the VM's context to use this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this function should be taking in a prometheus.Registerer 👍.

@joshua-kim joshua-kim self-assigned this Sep 11, 2023
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
network/p2p/gossip/gossip.go Show resolved Hide resolved
network/p2p/gossip/handler.go Show resolved Hide resolved
@StephenButtolph StephenButtolph changed the title gossip metrics Add sdk gossip metrics Sep 11, 2023
@StephenButtolph StephenButtolph added this to the v1.10.10 milestone Sep 11, 2023
@StephenButtolph StephenButtolph added networking This involves networking sdk This involves SDK tooling or frameworks monitoring This primarily focuses on logs, metrics, and/or tracing labels Sep 11, 2023
@StephenButtolph StephenButtolph changed the title Add sdk gossip metrics Add sdk gossip handler metrics Sep 11, 2023
@StephenButtolph StephenButtolph merged commit afa2b7a into dev Sep 11, 2023
16 checks passed
@StephenButtolph StephenButtolph deleted the gossip-metrics branch September 11, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monitoring This primarily focuses on logs, metrics, and/or tracing networking This involves networking sdk This involves SDK tooling or frameworks
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants