Implement cluster-stats for json-api