You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.2 KiB

  1. # tm-monitor
  2. Tendermint blockchain monitoring tool; watches over one or more nodes,
  3. collecting and providing various statistics to the user:
  4. - https://github.com/tendermint/tools/tree/master/tm-monitor
  5. ## Quick Start
  6. ### Docker
  7. Assuming your application is running in another container with the name
  8. `app`:
  9. docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
  10. docker run -it --rm -v "/tmp:/tendermint" -p "26657:26657" --name=tm --link=app tendermint/tendermint node --proxy_app=tcp://app:26658
  11. docker run -it --rm -p "26670:26670" --link=tm tendermint/monitor tm:26657
  12. If you don't have an application yet, but still want to try monitor out,
  13. use `kvstore`:
  14. docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
  15. docker run -it --rm -v "/tmp:/tendermint" -p "26657:26657" --name=tm tendermint/tendermint node --proxy_app=kvstore
  16. docker run -it --rm -p "26670:26670" --link=tm tendermint/monitor tm:26657
  17. ### Using Binaries
  18. [Install Tendermint](https://github.com/tendermint/tendermint#install)
  19. then run:
  20. tendermint init
  21. tendermint node --proxy_app=kvstore
  22. tm-monitor localhost:26657
  23. with the last command being in a seperate window.
  24. ## Usage
  25. tm-monitor [-v] [-no-ton] [-listen-addr="tcp://0.0.0.0:26670"] [endpoints]
  26. Examples:
  27. # monitor single instance
  28. tm-monitor localhost:26657
  29. # monitor a few instances by providing comma-separated list of RPC endpoints
  30. tm-monitor host1:26657,host2:26657
  31. Flags:
  32. -listen-addr string
  33. HTTP and Websocket server listen address (default "tcp://0.0.0.0:26670")
  34. -no-ton
  35. Do not show ton (table of nodes)
  36. -v verbose logging
  37. ### RPC UI
  38. Run `tm-monitor` and visit http://localhost:26670 You should see the
  39. list of the available RPC endpoints:
  40. http://localhost:26670/status
  41. http://localhost:26670/status/network
  42. http://localhost:26670/monitor?endpoint=_
  43. http://localhost:26670/status/node?name=_
  44. http://localhost:26670/unmonitor?endpoint=_
  45. The API is available as GET requests with URI encoded parameters, or as
  46. JSONRPC POST requests. The JSONRPC methods are also exposed over
  47. websocket.
  48. ## Development
  49. make get_tools
  50. make get_vendor_deps
  51. make test