-
Notifications
You must be signed in to change notification settings - Fork 48
Metrics usage examples - browser client #461
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
Comments
Unfortunately there is no good documentation. And the If you'd like an example, take a look here: Then, with a reference to the instance, you should be able to consume the metrics with methods described here: https://github.com/siimon/prom-client#register |
Thank you @wemeetagain I'll have a look 👍 |
@cristianmadularu the types you requested are now exported as of v10.1.0 |
Thank you! :) |
We should drop |
That would be very nice :) I would also suggest considering exposing an OTLP set of metrics in order to avoid being locked in any particular set of tools/vendors. |
Hi,
I am using the js-libp2p-gossipsub lib in a browser application and I am interested in consuming the metrics support the library exposes. Our application is primarlyl using OTLP so I am interested in capturing the gossipsub metrics and convert them to OTLP equivalents, however I was not able to find any usage documentation.
I did see that the options interface exposes two properties 'metricsRegister' and 'metricsTopicStrToLabel' but not much into how to use them. I started looking in the actual code implementation in order to get an idea, but I was wondering if there are any examples/documentation available.
Thank you
The text was updated successfully, but these errors were encountered: