diff --git a/Cloud-Monitoring.md b/Cloud-Monitoring.md new file mode 100644 index 0000000..8096f6b --- /dev/null +++ b/Cloud-Monitoring.md @@ -0,0 +1,48 @@ +Seaweed Cloud Monitoring is a service provided by seaweedfs.com. It is an attempt to help SeaweedFS to grow organically. + +Currently it has very basic features and all in beta. Later it can charge fees. + +# Start Seaweed Agent + +To try it out, run these with docker. It should print out a URL which you can visit. + +``` +docker run -ti chrislusf/seaweed_agent swagent -filer 192.168.2.11:8888 -password=your_password + +# or + +docker run -e SEAWEED_PASSWORD=your_password -ti chrislusf/seaweed_agent swagent -filer 192.168.2.11:8888 + +``` + +# Get Cloud Monitoring URL + +The container instance should have similar output, which you can find the Cloud Monitoring URL: +``` +docker run -e SEAWEED_PASSWORD=abc -ti chrislusf/seaweed_agent swagent -filer 192.168.2.10:8888 +2021/09/14 05:35:41 connecting to grpc.seaweedfs.com:4772 +2021/09/14 05:35:41 read /etc/seaweedfs/filer.conf: ReadEntry: filer: no entry is found in filer store +2021/09/14 05:35:41 tracking 192.168.2.10:8888: 1970-01-01 00:00:00 +0000 UTC +2021/09/14 05:35:42 connected to grpc.seaweedfs.com:4772 + +--- +Free Monitoring Data URL: +https://cloud.seaweedfs.com/ui/593HZ8CV9VF5976A8S0UABCDEFGHIJKL +--- +Filer version: 30GB 2.67 + +``` + +## Find the URL through `weed shell` +Now when starting `weed shell`, it should also print out the Cloud Monitoring URL: +``` +$ weed shell +master: localhost:9333 filer: localhost:8888 +I0913 22:50:51 96301 masterclient.go:96] adminShell masterClient Connecting to master localhost:9333 + +--- +Free Monitoring Data URL: +https://cloud.seaweedfs.com/ui/593HZ8CV9VF5976A8S0UABCDEFGHIJKL +--- +> +``` \ No newline at end of file