Not the answer you need?
Register and ask your own question!

add mongodb:metrics problem

hakimhakim ContributorCurrent User Role Beginner
Hello everyone ,

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

[linux:metrics] OK, already monitoring this system.
[mongodb:metrics] cannot verify MongoDB connection with `/usr/local/percona/pmm-client/mongodb_exporter --test`: exit status 1: time="2018-08-01T09:52:33+02:00" level=error msg="Cannot connect to server using url localhost:27017: no reachable servers" source="connection.go:84"
time="2018-08-01T09:52:33+02:00" level=error msg="Can't connect to MongoDB: Cannot connect using uri: localhost:27017" source="mongodb_exporter.go:104"

can anyone help me please ?

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

thanks

Comments

  • hakimhakim Contributor Current User Role Beginner
    can anyone help me please ?
  • lorraine.pocklingtonlorraine.pocklington Percona Community Manager Legacy User Role Patron
    What version of PMM are you running please?
  • krissfrkrissfr Contributor Current User Role Beginner
    Hi,
    i have the same issue with :

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


    Regards,

    Krissfr
  • IMPIMP Percona Percona Staff Role
    Hello,

    could you please check if localhost on your host is resolved to 127.0.0.1 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 127.0.0.1:27017         0.0.0.0:*               LISTEN      2511/mongod
    

    If it listens on 0.0.0.0 (ipv4), and localhost resolvs to ::1 (ipv6), please explicitly specify 127.0.0.1:
    # pmm-admin add mongodb --uri 127.0.0.1:27017
    
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.