# http/cluster-metrics Return the full cluster info map for a cluster started with `http/serve-cluster`. ## Syntax
[http/cluster-metrics]
## Returns Map with keys: - `:port` — bound TCP port - `:app-name` — app name (from `:app-name` opt or app-path basename) - `:app-path` — app file path workers load - `:worker-count` — number of workers - `:workers` — vector of worker names - `:generation` — current generation number (incremented on each reload) Returns an error if no cluster is running. ## Example
set info [http/cluster-metrics]
echo "generation:" $info~generation
echo "workers:" $info~workers
## See Also `http/serve-cluster`, `http/cluster-status`, `http/cluster-reload`, `http/cluster-stop`