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

kad: Add kademlia metrics #171

Open
Tracked by #140
lexnv opened this issue Jul 8, 2024 · 1 comment
Open
Tracked by #140

kad: Add kademlia metrics #171

lexnv opened this issue Jul 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lexnv
Copy link
Collaborator

lexnv commented Jul 8, 2024

Expose the following info for reporting back metrics:

  • kademlia total number of records store in the memory store
  • kademlia total number of bytes stored in the memory store (sum of all record's value)
  • kademlia entries per bucket
    • For simplicity, this can be a Vec<(u32, size)> similar to libp2p, where u32 is the base log2 of the bucket lower bound and usize is the number of peers in that bucket
@lexnv
Copy link
Collaborator Author

lexnv commented Jul 11, 2024

We could also add here any missing "pending" peers from the the kademlia queries:

tracing::debug!(target: LOG_TARGET, query = ?self.config.query, ?peer, "received response from peer but didn't expect it");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant