Files
iroh/iroh-cli
Brendan O'Brien 4df1c91f4d refactor(iroh-cli)!: metrics-addr cli arg, metrics off by default (#2631)
## 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.
2024-08-15 14:56:18 +00:00
..
2024-08-05 22:52:25 +02:00

iroh-cli

The CLI for iroh.

License

This project is licensed under either of

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.