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

[GOT-19] Propose a architectural design of decentralized metrics collection #518

Open
brunocalza opened this issue Apr 8, 2023 · 3 comments
Labels
Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync

Comments

@brunocalza
Copy link
Collaborator

  • You should experiment with go libp2p library
  • You can peek at other projects to see how they do it
  • Maybe you can start with some simple ping example and build on top of that

From SyncLinear.com | GOT-19

@brunocalza brunocalza added Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync labels Apr 8, 2023
@brunocalza
Copy link
Collaborator Author

// P2P Metrics
PeerCount         prometheus.Gauge
StreamCount       prometheus.Gauge
PeerScores        *prometheus.GaugeVec
GossipEventsTotal *prometheus.CounterVec
BandwidthTotal    *prometheus.GaugeVec

@brunocalza
Copy link
Collaborator Author

They have an interface called Metricer that indicates all kind of metrics being collected from peers

https://github.com/ethereum-optimism/optimism/blob/develop/op-node/metrics/metrics.go#L39

@brunocalza
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant