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 Pubsub Metrics Tracer #12178

Merged
merged 4 commits into from
Mar 24, 2023
Merged

Add Pubsub Metrics Tracer #12178

merged 4 commits into from
Mar 24, 2023

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Mar 23, 2023

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Adds in a new raw tracer whose main purpose is to record metrics from messages broadcasted and received by our gossipsub router.

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas added Ready For Review Networking P2P related items labels Mar 23, 2023
@nisdas nisdas requested a review from a team as a code owner March 23, 2023 12:35
Comment on lines 74 to 78
pubsubTopicsGraft = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "p2p_pubsub_graft_count",
Help: "The number of graft messages sent for a particular topic",
},
[]string{"topic"})
Copy link
Member

Choose a reason for hiding this comment

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

Should this be p2p_pubsub_graft_total?
Should this be a counter (only increases) instead of a gauge?

https://prometheus.io/docs/practices/naming/

Copy link
Member

Choose a reason for hiding this comment

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

Same feedback for all of these metrics

@nisdas nisdas merged commit 76c729f into develop Mar 24, 2023
@delete-merged-branch delete-merged-branch bot deleted the metricsTracer branch March 24, 2023 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking P2P related items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants