Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh-cli): add doctor plot (#2206)
## Description Allows for quick plotting of prometheus style metrics. By default it looks at `http://localhost:9090` but can be configured. When the plotter app is active you can freeze the state by pressing `f` or quit by pressing `q`. A magic metric named `random` can be used for demo purposes and simply generates a 1-100 value on every tick. Sample usage: `iroh doctor plot magicsock_relay_home_change_total,iroh_requests_total_total,random` Still got some cleanup to do and some sanity checking so we don't blow up in some cases. <img width="1950" alt="Screenshot 2024-04-18 at 00 27 01" src="https://github.com/n0-computer/iroh/assets/1760977/6c964a7b-4447-4027-b24e-4d8c34852e7a"> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant.
- Loading branch information