This is simple program that monitors the state of a local node and reports whether it's synced, catching up or has stopped syncing.
- Rust (version 1.49 and above);
- musl-tools, libssl-dev for linux
-
Building from Source
- Clone this repository
- Bulid binary new using
cargo build --release
- To build a static binary instead use the following commands below:
windows: usecargo build --release --target x86_64-pc-windows-msvc
.
linux: usecargo build --release --target x86_64-unknown-linux-musl
.
-
Download the binaries here
Create a settings.json file (see example below)
{
"pollingRate": 10, // polling rate in milliseconds
"xAlgoToken": "",// xAlgoToken
"validRoundRange": 1,
"localNode": , // url of the local node
"clusterNodes":[],// an Array of remote cluster nodes
"port": 9030, // port to connect run node-monitor
"nodePort": 9094
}
CLi interface
Usage: node-monitor [OPTIONS]
Options:
-c, --config <CONFIG> path to the configuration file (default: if not specified, settings.json file in the path as executable is used)
-d, --data-dir <DATA_DIR> The path to store the data.json file (default is the same directory as executable)
-v, --verbose shown more logging information, default is false with log level=info,
-h, --help Print help
-V, --version Print version