-
Notifications
You must be signed in to change notification settings - Fork 994
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
misc/metrics/: Track address stack #2758
Comments
@mxinden is this issue beginner friendly ? Is this |
Yes it should be. Take a look at how other metrics are implemented for some inspiration. You'll have to use a |
Got it! thanks for the advice |
I will need some time with this but I will be sending in a PR soon! |
A convenience for cases where _which_ protocols is of concern but the specific addresses are not, for example libp2p/rust-libp2p#2758
Previously, we would only track the metrics like the number of open connections. With this patch, we extend these metrics with a `protocols` label that contains a "protocol stack". A protocol stack is a multi-address with all variable parts removed. For example, `/ip4/127.0.0.1/tcp/1234` turns into `/ip4/tcp`. Resolves #2758.
Description
In order to answer questions like:
I think we should expose metrics like:
and
Requirements
Multiaddr
of the variable parts (e.g. concrete IP or concrete port) to prevent a cardinality explosion. See example implementation https://github.com/mxinden/kademlia-exporter/blob/7c6ced0c857152f8798a54d89648c54f65d47817/src/exporter/node_store.rs#L318-L358Open questions
Are you planning to do it yourself in a pull request?
Not any time soon. Happy to help contributors.
The text was updated successfully, but these errors were encountered: