I have mongo cluster using these commands
docker run -d --rm -p 27017:27017 --name mongo1 --network perconaNetwork mongo:7 mongod --replSet myReplicaSet --bind_ip localhost,mongo1
docker run -d --rm -p 27018:27017 --name mongo2 --network perconaNetwork mongo:7 mongod --replSet myReplicaSet --bind_ip localhost,mongo2
docker run -d --rm -p 27019:27017 --name mongo3 --network perconaNetwork mongo:7 mongod --replSet myReplicaSet --bind_ip localhost,mongo3
also create user and roles according to mongdb docs
and added the node using the command - -
docker exec pmm-clinet pmm-admin add mongodb --username=pmm --password=pmm --host=ip_of_primary_conatiner --query-source=profiler --cluster=myReplicaSet --enable-all-collectors
but when i see replicaset summary it is only showing primary node