Mongdb replicaSet Monitoring

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

Hi, you need to deploy one dedicated pmm-agent for each container. Make sure to specify the correct port for each and the --service-name option with a different service_name for each member.