libp2p / libp2p/go-libp2p

Improve resource manager observability

Open
#3,197 1 comment 2 reactions 1 assignee View on GitHub

@p-shahi is already working on this.

Since Jun 10, 2025.

Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

We should provide more inspection tools for users to make it easier for users to inspect resource manager usage. I have 3 specific items in mind.

- [ ] Provide a way to print resource usage: #3193
- [ ] Add prometheus metrics for the configured limits so these can be added to dashboards for convenient checking of the upper bound.
- [ ] Log the configured rcmgr limits on startup
- [ ] Improve the documentation for Limits
- What's a PartialLimitConfig
- What's a ScalingLimitConfig
- What's a default LimitVal which depends on context
- Move a lot of the README stuff to the actual objects so godoc can pick it up
- Add many more examples for common things people want
- [ ] Simplify the API for adjusting the default resources allocated. By default, an 1/8 of the resources are allocated. It should be easy enough to adjust this multiplier.

cc @2color

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.