Anton Kaliaev 8c6ae55bd0 | 8 years ago | |
---|---|---|
.. | ||
mock | 8 years ago | |
Dockerfile.dev | 8 years ago | |
LICENSE | 8 years ago | |
Makefile | 8 years ago | |
README.md | 8 years ago | |
glide.lock | 8 years ago | |
glide.yaml | 8 years ago | |
main.go | 8 years ago | |
monitor.go | 8 years ago | |
monitor_test.go | 8 years ago | |
network.go | 8 years ago | |
node.go | 8 years ago | |
node_test.go | 8 years ago | |
rpc.go | 8 years ago | |
ton.go | 8 years ago |
Tendermint monitor watches over one or more Tendermint core applications (nodes), collecting and providing various statistics to the user.
docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" tendermint/tendermint
docker run -it --rm tendermint/tm-monitor
Linux:
curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.8.0/tendermint_linux_amd64.zip && sudo unzip -d /usr/local/bin tendermint_linux_amd64.zip && sudo chmod +x tendermint
tendermint init
tendermint node --app_proxy=dummy
tm-monitor localhost:46657
Max OS:
curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.8.0/tendermint_darwin_amd64.zip && sudo unzip -d /usr/local/bin tendermint_darwin_amd64.zip && sudo chmod +x tendermint
tendermint init
tendermint node --app_proxy=dummy
tm-monitor localhost:46657
# monitor single instance
tm-monitor localhost:46657
# monitor a few instances by providing comma-separated list of RPC endpoints
tm-monitor host1:46657,host2:46657
Run tm-monitor
and visit http://localhost:46670.
You should see the list of the available RPC endpoints:
http://localhost:46670/status
http://localhost:46670/status/network
http://localhost:46670/monitor?endpoint=_
http://localhost:46670/status/node?name=_
http://localhost:46670/unmonitor?endpoint=_
The API is available as GET requests with URI encoded parameters, or as JSONRPC POST requests. The JSONRPC methods are also exposed over websocket.
statsd
metrics