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

feat(telemetry)_: track peers by shard and origin #5819

Closed
wants to merge 1 commit into from

Conversation

adklempner
Copy link
Contributor

@adklempner adklempner commented Sep 9, 2024

Periodically calculates number of connected peers per shard and discovery method, reports to telemetry

If telemetry is enabled, starts an additional go routine in wakuv2.Start() which periodically (currently set to 10 seconds) gets all connected peers. It iterates through each peer and counts how many were discovered using which method (via wakuPeerStore.Origin(peerId)) and how many peers support which shard ids. These counts are then reported to the telemetry service.

Important changes:

Related to status-im/telemetry#21

@status-im-auto
Copy link
Member

status-im-auto commented Sep 9, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ aa81ecc #1 2024-09-09 23:42:54 ~2 min tests-rpc 📄log
✔️ aa81ecc #1 2024-09-09 23:44:20 ~3 min linux 📦zip
✔️ aa81ecc #1 2024-09-09 23:45:20 ~4 min ios 📦zip
✔️ aa81ecc #1 2024-09-09 23:45:51 ~5 min android 📦aar
✔️ aa81ecc #1 2024-09-10 00:12:40 ~32 min tests 📄log
✔️ 00a9267 #2 2024-09-10 00:49:28 ~2 min tests-rpc 📄log
✔️ 00a9267 #2 2024-09-10 00:50:21 ~3 min ios 📦zip
✔️ 00a9267 #2 2024-09-10 00:51:13 ~4 min linux 📦zip
✔️ 00a9267 #2 2024-09-10 00:53:11 ~6 min android 📦aar
✔️ 00a9267 #2 2024-09-10 01:19:44 ~32 min tests 📄log

@adklempner adklempner force-pushed the feat/telemetry-peers-shard-origin branch from aa81ecc to 00a9267 Compare September 10, 2024 00:46
@adklempner adklempner marked this pull request as ready for review September 10, 2024 00:46
@adklempner adklempner marked this pull request as draft September 12, 2024 18:28
@adklempner
Copy link
Contributor Author

same commits merged in #5824

@adklempner adklempner closed this Sep 20, 2024
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