Skip to content

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

@joshua-kim joshua-kim force-pushed the gossip-metrics branch 2 times, most recently from 8b91477 to bdec28c Compare September 11, 2023 17:43
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>
@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
@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.

4 participants