add mongodb:metrics problem

Hello everyone ,

i have a problem when i put the command “pmm-admin add mongodb” in a client , i receive this error message :

can anyone help me please ?

just for your information , i am able with the same client to add mysql metrics without problems


can anyone help me please ?

What version of PMM are you running please?

i have the same issue with :

Package: pmm-client
Version: 1.14.1-1.jessie




could you please check if localhost on your host is resolved to or ::1?
You can use the following method to do that:

$ ping localhost -c1 -n
PING localhost(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.027 ms

Also, could you please check what is MongoDB bound to?

# netstat -nlput | grep -i mongo
tcp 0 0* LISTEN 2511/mongod 

If it listens on (ipv4), and localhost resolvs to ::1 (ipv6), please explicitly specify

# pmm-admin add mongodb --uri