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: allow per-component metrics to be collected #1061

Merged
merged 4 commits into from
Dec 15, 2021

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Dec 13, 2021

Implements the idea from #1060 - allows us to get some insight into what's happening in a libp2p node out side of just bandwidth stats.

Configures a few default metrics if metrics are enabled - current connections, the state of the dial queue, etc.

Also makes the Metrics class not depend on the ConnectionManager class, otherwise we can't collect simple metrics from the connection manager class due to the circular dependency.

Implements the idea from #1060 - allows us to get some insight into
what's happening in a libp2p node out side of just bandwidth stats.
@achingbrain achingbrain linked an issue Dec 13, 2021 that may be closed by this pull request
src/index.js Outdated Show resolved Hide resolved
@achingbrain achingbrain merged commit 2f0b311 into master Dec 15, 2021
@achingbrain achingbrain deleted the feat/allow-collecting-per-component-metrics branch December 15, 2021 08:03
achingbrain added a commit to ipfs/js-ipfs that referenced this pull request Dec 15, 2021
Exposes the per-component metrics from libp2p/js-libp2p#1061
in the prometheus end point.

Also allows changing the `debug` logging level dynamically.
achingbrain added a commit to ipfs/js-ipfs that referenced this pull request Dec 15, 2021
Exposes the per-component metrics from libp2p/js-libp2p#1061 in the prometheus end point.

Also allows changing the `debug` logging level dynamically.
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.

Per-component metrics
2 participants