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

Feature/metrics #35

Merged
merged 4 commits into from
Jun 14, 2022
Merged

Feature/metrics #35

merged 4 commits into from
Jun 14, 2022

Conversation

aratz-lasa
Copy link
Contributor

@aratz-lasa aratz-lasa commented Jun 14, 2022

Metrics reporter extended:

  • Report view size
  • Report open RPC connections

@aratz-lasa aratz-lasa merged commit bf6bbfc into master Jun 14, 2022
@lthibault lthibault deleted the feature/metrics branch July 3, 2022 21:32
func NewBandwidthCounter(s *statsd.Client) (b *metrics.BandwidthCounter, stop func()) {

b = metrics.NewBandwidthCounter()
s.Clone(
statsd.SampleRate(.1), // send 10% of metrics
statsd.Prefix("libp2p.host.bandwidth."))

ticker := time.NewTicker(time.Minute) // 1440 samples/day base-rate
ticker := time.NewTicker(sampleTick) // 1440 samples/day base-rate
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the comment is no longer accurate?

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.

2 participants