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.

74 lines
1.7 KiB

  1. Monitoring
  2. ==========
  3. tm-monitor
  4. ----------
  5. Tendermint blockchain monitoring tool; watches over one or more nodes, collecting and providing various statistics to the user: https://github.com/tendermint/tools/tree/master/tm-monitor
  6. Quick Start
  7. ^^^^^^^^^^^
  8. Docker
  9. ~~~~~~
  10. ::
  11. docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
  12. docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint
  13. docker run -it --rm --link=tm tendermint/monitor tm:46657
  14. Binaries
  15. ~~~~~~~~
  16. This will be the same as you did for ``tm-bench`` above, except for the last line which should be:
  17. ::
  18. tm-monitor localhost:46657
  19. Usage
  20. ^^^^^
  21. ::
  22. tm-monitor [-v] [-no-ton] [-listen-addr="tcp://0.0.0.0:46670"] [endpoints]
  23. Examples:
  24. # monitor single instance
  25. tm-monitor localhost:46657
  26. # monitor a few instances by providing comma-separated list of RPC endpoints
  27. tm-monitor host1:46657,host2:46657
  28. Flags:
  29. -listen-addr string
  30. HTTP and Websocket server listen address (default "tcp://0.0.0.0:46670")
  31. -no-ton
  32. Do not show ton (table of nodes)
  33. -v verbose logging
  34. RPC UI
  35. ^^^^^^
  36. Run ``tm-monitor`` and visit http://localhost:46670
  37. You should see the list of the available RPC endpoints:
  38. ::
  39. http://localhost:46670/status
  40. http://localhost:46670/status/network
  41. http://localhost:46670/monitor?endpoint=_
  42. http://localhost:46670/status/node?name=_
  43. http://localhost:46670/unmonitor?endpoint=_
  44. The API is available as GET requests with URI encoded parameters, or as JSONRPC
  45. POST requests. The JSONRPC methods are also exposed over websocket.
  46. Development
  47. ^^^^^^^^^^^
  48. ::
  49. make get_vendor_deps
  50. make test