Skip to content

feat: allow per-component metrics to be collected#1061

Merged
achingbrain merged 4 commits into
masterfrom
feat/allow-collecting-per-component-metrics
Dec 15, 2021
Merged

feat: allow per-component metrics to be collected#1061
achingbrain merged 4 commits into
masterfrom
feat/allow-collecting-per-component-metrics

Conversation

@achingbrain
Copy link
Copy Markdown
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
Comment thread src/index.js Outdated
@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