mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 08:01:34 +00:00
## Description When iroh is running in a docker container, not being able to specify the full address is an issue. This aligns with the rpc-addr flag. at the same time–but for different reasons–I'd also like to disable surfacing metrics by default. My primary reason for this is an experience I've had numerous times using iroh: 1. Start an initial node 2. Start a second node, on the same machine (usually while debugging or following a tutorial) 3. See a "can't bind to port" error from the iroh metrics crate 4. Wonder to myself what metrics do, and if they're being sent anywhere (I know they by default are not) I think metrics should be treated as an advanced, opt-in feature that power users discover and are delighted to find. As tribute to this work I offer to write a docs page about enabling metrics to get this merged. ## Breaking Changes * `--metrics-port` flag on the iroh cli is now `--metrics-addr`, eg: specify `127.0.0.1:9090` instead of `9090` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented.
iroh-cli
The CLI for
iroh.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.