Seaweedfs

<< Back to wiki homepage

Table of contents:

Getting data

Parsing the volume API with JQ

Lists all volumes with their collection names:

curl -s "http://localhost:8080/status?pretty=y" | jq '.Volumes | map({(.Id|tostring): .Collection}) | add'

Lists all volumes with their collection names and their sizes:

curl -s "http://localhost:8080/status?pretty=y" | jq '.Volumes | map({(.Id|tostring): {Collection: .Collection, Size: .Size}}) | add'

Querying the health from master nodes

Just use the helper script.