Pmm client container not able connect automatically once it gets restarted and query analytics

Hello
actually iam working on pmm dashboard for MongoDB in which the pmm client is not able to reconnect once the pmm container got restarted when i check the logs iam getting

Checking
local pmm-agent status…
pmm-agent is not running.
Registering pmm-agent on PMM Server…
Failed to register pmm-agent on PMM Server: Node with name “mongodb01.info” already exists. If you want override node, use --force option.
time=“2024-10-10T11:11:05.335+00:00” level=info msg=“‘pmm-agent setup’ exited with 1” component=entrypoint

which is not reconnecting with pmm dashboard eventhough the pmm client container has been created with pmm-server-setup=true pmm-agent-force also been used. if i try to add it manually it will get connected

in Query analytics
ive done the profiling using mongod.conf,using cli and for particular db for permanent solution and also restarted the mongod and pmm clients still am not able to get a querys in query analytics pmm dashboard.please help me to solve this above issues

@vishnu

It looks like you running PMM Agent/Client in a container based environment. Can you please share the docker/container logs along with the file generated from the below command on the client to check if there is any connection related warnings/errors there.

shell> pmm-admin summary
shell> journalctl -eu pmm-agent > agent.log

From the Mongod node, please share the output of below command to check the profiling status ?
mongo> db.getProfilingStatus()

Are you seeing those queries directly in the profiling collection as below OR in the mongod.log file ?

shell> db.system.profile.find().pretty()

What is the PMM Server/Client version you are using ? If you remove the service and then re-add is this working fine along with the QAN ?