Swim application tutorial to monitor a cluster of machines.
- Ensure that your
JAVA_HOME
environment variable points to the Java installation. - Ensure that your
PATH
includes$JAVA_HOME
.
$ ./gradlew run
$ ./gradlew -Dhost=<warp-address-of-server> runClient
Example:
$ ./gradlew -Dhost=warp://localhost:9001 runClient
swim-cli sync -h warp://localhost:9001 -n swim:meta:mesh -l pulse
swim-cli sync -h warp://localhost:9001 -n /monitor -l machines
swim-cli sync -h warp://localhost:9001 -n /monitor -l clusters
swim-cli sync -h warp://localhost:9001 -n /machine/my-machine -l status
swim-cli sync -h warp://localhost:9001 -n /machine/my-machine -l statusHistory
swim-cli sync -h warp://localhost:9001 -n /machine/my-machine -l systemInfo
swim-cli sync -h warp://localhost:9001 -n /machine/my-machine -l usage
swim-cli sync -h warp://localhost:9001 -n /machine/my-machine -l processes
swim-cli sync -h warp://localhost:9001 -n /cluster/abc -l machines
swim-cli sync -h warp://localhost:9001 -n /cluster/abc -l status
swim-cli sync -h warp://localhost:9001 -n /cluster/abc -l statusHistory
Now, you can view the UI by appending /ui
to the host address using the HTTP or HTTPS protocol, such as http://localhost:9001/ui
.