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
expose individual peer information tracked by overlay via the peers endpoint #3041
Comments
As Nicolas mentioned above, we have two classes for metrics:
As far as I know, we are not going to calculate and expose all of these metrics for each peer.
I think these will change the approach (e.g., if we add many metrics to The following is the list of metrics in Aggregated metrics tracked in
|
Not sure I understand, why do we need to change this? The issue is around exposing this information in the peers endpoint. We don't need to rework the metrics, we just need to identify what we need to track. We shouldn't remove any of the PeerMetrics, because they are used in the survey.
I'm not sure I understand what you mean. Why will there be duplicates? Regarding what information we need to expose in the peers endpoint, I'd add:
|
I'll work on adding those!
We don't. I was just wondering!
The |
I don't think we should consolidate those, as they track different things (per peer internal counters that are only available on demand vs aggregate metrics that are stored in the global registry) |
Right now core expose aggregate overlay metrics (exported via the metrics endpoint) and computes per peer metrics (not exposed as metrics).
We should export those as part of the
peers
endpoint (maybe with a new flag if it's too verbose).This would allow to get a sense of certain things like number of bytes transferred etc on a per peer basis when debugging.
From a quick look at the code, it looks like many metrics are not computed on a per peer basis (because this information is not useful in the "network survey" context), but should be exposed as part of this work.
For example,
getOverlayMetrics().mMessageDrop
doesn't have a per peer equivalent.On that note, we may want to use some template helper of sorts to update both metric types at once instead of manually keeping metrics them in sync with code like
The text was updated successfully, but these errors were encountered: